We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7407309 commit 389eea5Copy full SHA for 389eea5
1 file changed
tests/test_utils.py
@@ -361,9 +361,12 @@ def test_zipped_paths_extracted(self, tmpdir):
361
zipped_path = os.path.join(zipped_py.strpath, name.lstrip(r"\/"))
362
extracted_path = extract_zipped_paths(zipped_path)
363
364
- assert extracted_path != zipped_path
365
- assert os.path.exists(extracted_path)
366
- assert filecmp.cmp(extracted_path, __file__)
+ try:
+ assert extracted_path != zipped_path
+ assert os.path.exists(extracted_path)
367
+ assert filecmp.cmp(extracted_path, __file__)
368
+ finally:
369
+ os.remove(extracted_path)
370
371
def test_invalid_unc_path(self):
372
path = r"\\localhost\invalid\location"
0 commit comments