rename did not help

This commit is contained in:
Paul Gauthier 2023-07-06 12:26:29 -07:00
parent 2b69c11672
commit 656af5cd83

View file

@ -202,11 +202,7 @@ class TestCoder(unittest.TestCase):
coder.run(with_message="hi")
self.assertEqual(len(coder.abs_fnames), 2)
# move the file
# os.remove() causes PermErr on Windows!
# PermissionError: [WinError 32] The process cannot access the file because
# it is being used by another process
os.rename(file1, file1 + ".renamed")
os.remove(file1)
# Call the run method again with a message
coder.run(with_message="hi")