Skip to content

Commit

Permalink
[fix] compatible with py37
Browse files Browse the repository at this point in the history
  • Loading branch information
NatLee committed Sep 1, 2022
1 parent adf288b commit ce044b9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_heic2png.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ def run_around_tests(self):
# before
yield
# after
Path(self.__test_input_filename).unlink(missing_ok=True)
Path(self.__test_output_filename).unlink(missing_ok=True)
input_file = Path(self.__test_input_filename)
output_file = Path(self.__test_output_filename)
if input_file.exists():
input_file.unlink()
if output_file.exists():
output_file.unlink()


if __name__ == '__main__':
Expand Down

0 comments on commit ce044b9

Please sign in to comment.