X Tutup
Skip to content

Commit bcdd57a

Browse files
committed
Removing RF 2.9 support
1 parent b932e94 commit bcdd57a

File tree

3 files changed

+4
-21
lines changed

3 files changed

+4
-21
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ matrix:
5151
env:
5252
- BROWSER=chrome
5353
- SELENIUM=3.141.0
54-
- ROBOTFRAMEWORK=2.9.2
54+
- ROBOTFRAMEWORK=3.0.4
5555
- ROBOT_OPTIONS=--dotted
5656
- INTERPRETER=python2
5757
before_script:

src/SeleniumLibrary/utils/types.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,11 @@
1515
# limitations under the License.
1616

1717
# Originally based on Robot Framework 3.0.2 robot.utils.robottypes and
18-
# robot.utils.PY3 Can be removed when library minimum required Robot Framework
18+
# Can be removed when library minimum required Robot Framework
1919
# version is greater than 3.0.2. Then Robot Framework is_truthy should
2020
# also support string NONE as Python False.
2121
from robot.utils import is_string
22-
try:
23-
from robot.utils import PY3
24-
except ImportError:
25-
import sys
26-
PY3 = sys.version_info[0] == 3
22+
from robot.utils import PY3
2723

2824

2925
def is_truthy(item):

utest/test/utils/test_types.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
11
import unittest
22

3-
from SeleniumLibrary.utils import is_string, is_truthy, is_falsy, is_noney
4-
5-
6-
class IsstringTests(unittest.TestCase):
7-
8-
def test_is_string(self):
9-
strings = ['1', 'foo', ' ', u'', '']
10-
for item in strings:
11-
self.assertTrue(is_string(item))
12-
13-
def test_is_not_string(self):
14-
strings = [1, 2.345, None, False]
15-
for item in strings:
16-
self.assertFalse(is_string(item))
3+
from SeleniumLibrary.utils import is_truthy, is_falsy, is_noney
174

185

196
class IsTruthyFalsyNoneyTests(unittest.TestCase):

0 commit comments

Comments
 (0)
X Tutup