Commits

Antoine Pitrou  committed 0aa39f3

Use w bits instead of x bits in test_chmod, to satisfy Windows

  • Participants
  • Parent commits dcf589e
  • Branches pathlib

Comments (0)

Files changed (1)

File Lib/test/test_pathlib.py

     def test_chmod(self):
         p = self.cls(BASE)['fileA']
         mode = p.stat().st_mode
-        # Clear execute bit
-        new_mode = mode & ~0o111
+        # Clear writable bit
+        new_mode = mode & ~0o222
         p.chmod(new_mode)
         self.assertEqual(p.restat().st_mode, new_mode)
-        # Set execute bit
-        new_mode = mode | 0o111
+        # Set writable bit
+        new_mode = mode | 0o222
         p.chmod(new_mode)
         self.assertEqual(p.restat().st_mode, new_mode)