diff options
author | Charles-François Natali <neologix@free.fr> | 2011-10-04 21:36:49 (GMT) |
---|---|---|
committer | Charles-François Natali <neologix@free.fr> | 2011-10-04 21:36:49 (GMT) |
commit | 09252c4938aa14eafc1937e3b17af2f51f8cf123 (patch) | |
tree | 742b877c7b27482dac2e8675e1968dcae66cd895 /Lib/test | |
parent | 5f99c912c8721d1b8da54d371ff826c46262e944 (diff) | |
parent | 035018d078da3577a1913a6c0e82866bf62f5212 (diff) | |
download | cpython-09252c4938aa14eafc1937e3b17af2f51f8cf123.zip cpython-09252c4938aa14eafc1937e3b17af2f51f8cf123.tar.gz cpython-09252c4938aa14eafc1937e3b17af2f51f8cf123.tar.bz2 |
os.geteuid() may not be available...
Diffstat (limited to 'Lib/test')
-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 9d3db29..338f1d4 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 |