Commits

Antoine Pitrou committed 3fdbca3

Fix test_replace

  • Participants
  • Parent commits b88d80f

Comments (0)

Files changed (1)

File test_pathlib.py

         size = p.stat().st_size
         # Replacing a non-existing path
         q = P['dirA', 'fileAA']
-        p.rename(q)
+        p.replace(q)
         self.assertEqual(q.stat().st_size, size)
         self.assertFileNotFound(p.restat)
         # Replacing another (existing) path
         r = rel_join('dirB', 'fileB')
-        q.rename(r)
+        q.replace(r)
         self.assertEqual(os.stat(r).st_size, size)
         self.assertFileNotFound(q.restat)