summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_import.py
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2011-10-04 21:35:47 (GMT)
committerCharles-François Natali <neologix@free.fr>2011-10-04 21:35:47 (GMT)
commit035018d078da3577a1913a6c0e82866bf62f5212 (patch)
tree10edc25db7dfca606db7423402386226785d9b06 /Lib/test/test_import.py
parent79164c8c713caa1d99c21cacabc606f4584af688 (diff)
downloadcpython-035018d078da3577a1913a6c0e82866bf62f5212.zip
cpython-035018d078da3577a1913a6c0e82866bf62f5212.tar.gz
cpython-035018d078da3577a1913a6c0e82866bf62f5212.tar.bz2
os.geteuid() may not be available...
Diffstat (limited to 'Lib/test/test_import.py')
-rw-r--r--Lib/test/test_import.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py
index f74556f..7c54032 100644
--- a/Lib/test/test_import.py
+++ b/Lib/test/test_import.py
@@ -547,7 +547,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