Skip to content
Myr

Cleanup extracted file after extract_zipped_path test (#7305)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Nate Prewitt · committed by GitHub · parent 7407309 · Browse files · 1 file+6 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−3 removed

  • tests:+6 added−3 removed

1 file+6 added−3 removed

modified:tests/test_utils.py+6 added-3 removed
359 unmodified lines
360 _, name = os.path.splitdrive(__file__)361 zipped_path = os.path.join(zipped_py.strpath, name.lstrip(r"\/"))362 extracted_path = extract_zipped_paths(zipped_path)363364 try:364 assert extracted_path != zipped_path365 assert os.path.exists(extracted_path)366 assert filecmp.cmp(extracted_path, __file__)365 assert extracted_path != zipped_path366 assert os.path.exists(extracted_path)367 assert filecmp.cmp(extracted_path, __file__)368 finally:369 os.remove(extracted_path)370371 def test_invalid_unc_path(self):372 path = r"\\localhost\invalid\location"373 assert extract_zipped_paths(path) == path
617 unmodified lines