This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author benjamin.peterson
Recipients benjamin.peterson
Date 2018-09-13.18:22:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1536862928.9.0.956365154283.issue34664@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-09-13 18:22:08benjamin.petersonsetrecipients: + benjamin.peterson
2018-09-13 18:22:08benjamin.petersonsetmessageid: <1536862928.9.0.956365154283.issue34664@psf.upfronthosting.co.za>
2018-09-13 18:22:08benjamin.petersonlinkissue34664 messages
2018-09-13 18:22:08benjamin.petersoncreate