summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2011-10-04 21:36:49 (GMT)
committerCharles-François Natali <neologix@free.fr>2011-10-04 21:36:49 (GMT)
commit09252c4938aa14eafc1937e3b17af2f51f8cf123 (patch)
tree742b877c7b27482dac2e8675e1968dcae66cd895 /Lib/test
parent5f99c912c8721d1b8da54d371ff826c46262e944 (diff)
parent035018d078da3577a1913a6c0e82866bf62f5212 (diff)
downloadcpython-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.py2
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