mirror of
https://github.com/python/cpython.git
synced 2025-10-20 05:41:23 +00:00
Issue #11956: Always skip test_import.test_unwritable_directory when run as
root, since the semantics varies across Unix variants.
This commit is contained in:
commit
5f99c912c8
1 changed files with 2 additions and 2 deletions
|
@ -545,8 +545,8 @@ class PycacheTests(unittest.TestCase):
|
||||||
|
|
||||||
@unittest.skipUnless(os.name == 'posix',
|
@unittest.skipUnless(os.name == 'posix',
|
||||||
"test meaningful only on posix systems")
|
"test meaningful only on posix systems")
|
||||||
@unittest.skipIf(platform.system() == 'FreeBSD' and os.geteuid() == 0,
|
@unittest.skipIf(os.geteuid() == 0,
|
||||||
"due to non-standard filesystem permission semantics (issue #11956)")
|
"due to varying filesystem permission semantics (issue #11956)")
|
||||||
def test_unwritable_directory(self):
|
def test_unwritable_directory(self):
|
||||||
# When the umask causes the new __pycache__ directory to be
|
# When the umask causes the new __pycache__ directory to be
|
||||||
# unwritable, the import still succeeds but no .pyc file is written.
|
# unwritable, the import still succeeds but no .pyc file is written.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue