Commits

Antoine Pitrou  committed e753f4b

Also fix test_stat for Windows

  • Participants
  • Parent commits 0aa39f3
  • Branches pathlib

Comments (0)

Files changed (1)

File Lib/test/test_pathlib.py

         st = p.stat()
         self.assertEqual(p.stat(), st)
         self.assertEqual(p.restat(), st)
-        # Change file mode by flipping execute bit
-        p.chmod(st.st_mode ^ 0o111)
+        # Change file mode by flipping write bit
+        p.chmod(st.st_mode ^ 0o222)
         # Cached value didn't change
         self.assertEqual(p.stat(), st)
         # restat() invalidates the cache