diff options
Diffstat (limited to 'astroid/tests/unittest_manager.py')
| -rw-r--r-- | astroid/tests/unittest_manager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/tests/unittest_manager.py b/astroid/tests/unittest_manager.py index dd024af8..67e6fbce 100644 --- a/astroid/tests/unittest_manager.py +++ b/astroid/tests/unittest_manager.py @@ -26,7 +26,7 @@ BUILTINS = six.moves.builtins.__name__ def _get_file_from_object(obj): if platform.python_implementation() == 'Jython': return obj.__file__.split("$py.class")[0] + ".py" - if sys.version_info > (3, 4): + if sys.version_info >= (3, 4): return obj.__file__ if not obj.__file__.endswith(".py"): return obj.__file__[:-1] @@ -104,7 +104,7 @@ class AstroidManagerTest(resources.SysPathSetup, def test_ast_from_namespace_pkg_resources(self): self._test_ast_from_old_namespace_package_protocol('pkg_resources') - @unittest.skipUnless(sys.version_info[:2] > (3, 4), "Needs PEP 420 namespace protocol") + @unittest.skipUnless(sys.version_info[:2] >= (3, 4), "Needs PEP 420 namespace protocol") def test_implicit_namespace_package(self): data_dir = os.path.dirname(resources.find('data/namespace_pep_420')) contribute = os.path.join(data_dir, 'contribute_to_namespace') |
