We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 714d92c commit 77b2acfCopy full SHA for 77b2acf
1 file changed
tests/test_utils.py
@@ -351,9 +351,12 @@ def test_zipped_paths_extracted(self, tmpdir):
351
zipped_path = os.path.join(zipped_py.strpath, name.lstrip(r"\/"))
352
extracted_path = extract_zipped_paths(zipped_path)
353
354
- assert extracted_path != zipped_path
355
- assert os.path.exists(extracted_path)
356
- assert filecmp.cmp(extracted_path, __file__)
+ try:
+ assert extracted_path != zipped_path
+ assert os.path.exists(extracted_path)
357
+ assert filecmp.cmp(extracted_path, __file__)
358
+ finally:
359
+ os.remove(extracted_path)
360
361
def test_invalid_unc_path(self):
362
path = r"\\localhost\invalid\location"
0 commit comments