diff --git a/beat/editor/test/test_resources.py b/beat/editor/test/test_resources.py index 658c2ab3bc3c25c7845d087c97051cd71daed7a6..884483e4237482c6a4f73f9d62aae113a860a752 100644 --- a/beat/editor/test/test_resources.py +++ b/beat/editor/test/test_resources.py @@ -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():