diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py index d014ee83acf..83e2174f994 100644 --- a/Lib/test/test_tempfile.py +++ b/Lib/test/test_tempfile.py @@ -479,6 +479,7 @@ def test_mode(self): dir = self.do_create() try: mode = stat.S_IMODE(os.stat(dir).st_mode) + mode &= 0777 # Mask off sticky bits inherited from /tmp expected = 0700 if sys.platform in ('win32', 'os2emx', 'mac'): # There's no distinction among 'user', 'group' and 'world';