Commits

Antoine Pitrou  committed da4db15

Skip some tests when symlinks are unavailable

  • Participants
  • Parent commits 2a087e1
  • Branches pathlib

Comments (0)

Files changed (1)

File Lib/test/test_pathlib.py

         self.assertNotEqual(p.restat(), st)
         self.assertNotEqual(p.stat(), st)
 
+    @with_symlinks
     def test_lstat(self):
         p = self.cls(BASE)['linkA']
         st = p.stat()
         self.assertEqual(os.stat(r).st_size, size)
         self.assertRaises(FileNotFoundError, q.restat)
 
+    @with_symlinks
     def test_symlink_to(self):
         P = self.cls(BASE)
         target = P['fileA']