Fixed isolation of test_filename_traversal_upload().
shutil.rmtree(MEDIA_ROOT) is already called as a class cleanup.
This commit is contained in:
parent
aba9c2de66
commit
1ff0ea6e9b
|
@ -624,7 +624,6 @@ class FileUploadTests(TestCase):
|
||||||
|
|
||||||
def test_filename_traversal_upload(self):
|
def test_filename_traversal_upload(self):
|
||||||
os.makedirs(UPLOAD_TO, exist_ok=True)
|
os.makedirs(UPLOAD_TO, exist_ok=True)
|
||||||
self.addCleanup(shutil.rmtree, MEDIA_ROOT)
|
|
||||||
tests = [
|
tests = [
|
||||||
'../test.txt',
|
'../test.txt',
|
||||||
'../test.txt',
|
'../test.txt',
|
||||||
|
|
Loading…
Reference in New Issue