diff options
| -rw-r--r-- | Lib/test/test_import.py | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 9d3db29a49..338f1d417d 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -545,7 +545,7 @@ class PycacheTests(unittest.TestCase):      @unittest.skipUnless(os.name == 'posix',                           "test meaningful only on posix systems") -    @unittest.skipIf(os.geteuid() == 0, +    @unittest.skipIf(hasattr(os, 'geteuid') and os.geteuid() == 0,              "due to varying filesystem permission semantics (issue #11956)")      def test_unwritable_directory(self):          # When the umask causes the new __pycache__ directory to be  | 
