New submission from Benjamin Peterson <[email protected]>:
If TESTFN is in a directory with S_ISGID set in its mode, test_os will fail:
======================================================================
FAIL: test_mode (test.test_os.MakedirTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-alpine/build/Lib/test/test_os.py", line
1134, in test_mode
self.assertEqual(stat.S_IMODE(os.stat(path).st_mode), 0o555)
AssertionError: 1389 != 365
The problem is we're checking the entire file mode when we should just be
checking the permission bits.
----------
components: Tests
messages: 325273
nosy: benjamin.peterson
priority: normal
severity: normal
status: open
title: test.test_os.MakedirTests.test_mode is too strict
versions: Python 3.7, Python 3.8
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue34664>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com