Video editing with Python
Remove autogenerated mp3 files in tests (#1413)
Álvaro Mondéjar7d82325a1a4e
diff --git a/tests/test_VideoClip.py b/tests/test_VideoClip.pyindex aa2ac745..ea3dc090 100644--- a/tests/test_VideoClip.py+++ b/tests/test_VideoClip.py@@ -44,6 +44,10 @@ def test_write_frame_errors():), e.valueclose_all_clips(locals())+ autogenerated_location = "unlogged-writeTEMP_MPY_wvf_snd.mp3"+ if os.path.exists(autogenerated_location):+ os.remove(autogenerated_location)+def test_write_frame_errors_with_redirected_logs():"""Checks error cases return helpful messages even when logs redirected@@ -58,6 +62,12 @@ def test_write_frame_errors_with_redirected_logs():)close_all_clips(locals())+ autogenerated_location_mp3 = "logged-writeTEMP_MPY_wvf_snd.mp3"+ autogenerated_location_log = autogenerated_location_mp3 + ".log"+ for fp in [autogenerated_location_mp3, autogenerated_location_log]:+ if os.path.exists(fp):+ os.remove(fp)+def test_write_videofiles_with_temp_audiofile_path():clip = VideoFileClip("media/big_buck_bunny_432_433.webm").subclip(0.2, 0.5)