From: Charles-François Natali Date: Tue, 4 Oct 2011 21:35:47 +0000 (+0200) Subject: os.geteuid() may not be available... X-Git-Tag: v3.2.3rc1~531 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=035018d078da3577a1913a6c0e82866bf62f5212;p=thirdparty%2FPython%2Fcpython.git os.geteuid() may not be available... --- diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index f74556f98062..7c540327fcdb 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