diff options
author | cpopa <devnull@localhost> | 2014-07-25 10:23:16 +0200 |
---|---|---|
committer | cpopa <devnull@localhost> | 2014-07-25 10:23:16 +0200 |
commit | cc0aa25dc84dd780a19b0f18f1a34c9d8fd8286e (patch) | |
tree | 2778080f6c3b4820c0133a2c3d2d18ab81175075 /test | |
parent | 48dbe0c49933e53585641120f5bd610e4f5ca20f (diff) | |
download | astroid-cc0aa25dc84dd780a19b0f18f1a34c9d8fd8286e.tar.gz |
Skip a test on Windows and Python 3.
Diffstat (limited to 'test')
-rw-r--r-- | test/unittest_modutils.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/unittest_modutils.py b/test/unittest_modutils.py index 396545e..67e0b9b 100644 --- a/test/unittest_modutils.py +++ b/test/unittest_modutils.py @@ -196,8 +196,10 @@ class is_standard_module_tc(TestCase): def test_4(self): import astroid - if sys.version_info > (3, 0) and '.tox' in astroid.__file__: - self.skipTest('py3 tox environments are known to have bad STD_LIB_DIR, breaking this test') + if (sys.version_info > (3, 0) and sys.platform.startswith('win')): + self.skipTest('imp module has a broken behaviour in Python 3 on ' + 'Windows, returning the module path with different ' + 'case than it should be.') self.assertEqual(modutils.is_standard_module('hashlib'), True) self.assertEqual(modutils.is_standard_module('pickle'), True) self.assertEqual(modutils.is_standard_module('email'), True) |