Skip to content

Commit 8283032

Browse files
committed
Fix unit test
1 parent bcbdcde commit 8283032

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

atest/DynamicTypesLibrary.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ def keyword_none(self, arg=None):
6363
def is_python_3_10(self):
6464
return sys.version_info >= (3, 10)
6565

66-
@keyword
67-
def is_rf_401(self):
68-
return "4.0." in rf_version.VERSION
69-
7066
@keyword
7167
@def_deco
7268
def keyword_with_def_deco(self):
@@ -85,3 +81,7 @@ def varargs_and_kwargs(self, *args, **kwargs):
8581
@keyword
8682
def keyword_booleans(self, arg1=True, arg2=False):
8783
return '{}: {}, {}: {}'.format(arg1, type(arg1), arg2, type(arg2))
84+
85+
@keyword
86+
def is_rf_401(self):
87+
return "4.0." in rf_version.VERSION

utest/test_get_keyword_source.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_location_in_class(lib, lib_path_components):
5050

5151
def test_decorator_wrapper(lib_types, lib_path_types):
5252
source = lib_types.get_keyword_source('keyword_wrapped')
53-
assert source == '%s:72' % lib_path_types
53+
assert source == '%s:74' % lib_path_types
5454

5555

5656
def test_location_in_class_custom_keyword_name(lib, lib_path_components):
@@ -79,7 +79,7 @@ def test_no_path_and_no_line_number(lib, when):
7979

8080
def test_def_in_decorator(lib_types, lib_path_types):
8181
source = lib_types.get_keyword_source('keyword_with_def_deco')
82-
assert source == '%s:66' % lib_path_types
82+
assert source == '%s:68' % lib_path_types
8383

8484

8585
def test_error_in_getfile(lib, when):

0 commit comments

Comments
 (0)