From 825ca0ef6f851c3c6b907e9870c98852ee6b5be7 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Tue, 30 Jun 2020 07:32:12 -0400 Subject: [PATCH] Clean up after `add_field` in test Should fix #33. --- test/test_mediafile_edge.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_mediafile_edge.py b/test/test_mediafile_edge.py index 597f410..219dbaf 100644 --- a/test/test_mediafile_edge.py +++ b/test/test_mediafile_edge.py @@ -442,6 +442,10 @@ def test_write(self): def tearDown(self): self.remove_temp_dir() + try: + del mediafile.MediaFile.read_only_test + except AttributeError: + pass def suite():