From 656af5cd83a842e949cb451f7965f54b294404a6 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 6 Jul 2023 12:26:29 -0700 Subject: [PATCH] rename did not help --- tests/test_coder.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/test_coder.py b/tests/test_coder.py index 2df9447de..d34e52d4e 100644 --- a/tests/test_coder.py +++ b/tests/test_coder.py @@ -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")