From 894d240bc00108a9f4a04296e79008e62636f578 Mon Sep 17 00:00:00 2001 From: Vincent Lostanlen Date: Wed, 5 Dec 2018 22:26:02 -0500 Subject: [PATCH] rmtree after assert --- tests/test_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index 6981c9b..7cc6ee4 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -171,10 +171,10 @@ def test_run(capsys): string_input = FG_10SEC_PATH tempdir = tempfile.mkdtemp() run(string_input, output_dir=tempdir) - shutil.rmtree(tempdir) csv_path = os.path.join( tempdir, 'BirdVox-scaper_example_foreground_timestamps.csv') assert os.path.exists(csv_path) + shutil.rmtree(tempdir)