diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-07-05 12:05:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-05 12:05:13 +0200 |
| commit | 1ff0ea6e9bd11788ca6f1ab09291f177934f589e (patch) | |
| tree | 199f0bcc167ce13918a7896c7bda26ee1424bac6 | |
| parent | aba9c2de669dcc0278c7ffde7981be91801be00b (diff) | |
Fixed isolation of test_filename_traversal_upload().
shutil.rmtree(MEDIA_ROOT) is already called as a class cleanup.
| -rw-r--r-- | tests/file_uploads/tests.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/file_uploads/tests.py b/tests/file_uploads/tests.py index 8b5d1de26f..145d714a76 100644 --- a/tests/file_uploads/tests.py +++ b/tests/file_uploads/tests.py @@ -624,7 +624,6 @@ class FileUploadTests(TestCase): def test_filename_traversal_upload(self): os.makedirs(UPLOAD_TO, exist_ok=True) - self.addCleanup(shutil.rmtree, MEDIA_ROOT) tests = [ '../test.txt', '../test.txt', |
