Commit 47ddecfa authored by Jaden DIEFENBAUGH's avatar Jaden DIEFENBAUGH

[py] fix nose test failing on py27 ci

parent 053f3fc2
Pipeline #23479 passed with stages
in 51 minutes and 40 seconds
......@@ -48,7 +48,8 @@ def test_assert_valid_entity_invalid():
def test_path_to_dict_file():
currfile = os.path.realpath(__file__)
res = resources.path_to_dict(currfile)
nose.tools.eq_(res, {'name': 'test_resources.py', 'type': 'file'});
# in python 3 the first case works but in python 2 the second case works
assert res == {'name': 'test_resources.py', 'type': 'file'} or res == {'name': 'test_resources.pyc', 'type': 'file'}
# the func parses this folder
def test_path_to_dict_folder():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment