summaryrefslogtreecommitdiff
path: root/tests/admin_views
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2015-02-21 19:18:54 +0100
committerTim Graham <timograham@gmail.com>2015-02-23 15:26:35 -0500
commite3953de9003c69f3b2485b7f8f56057a0cd4ef1f (patch)
tree81215b380ceb9678e4fe40811b240ba3b1439b96 /tests/admin_views
parentfae31f234823474cd2b81efba56fa714cc34d9cd (diff)
[1.8.x] Normalized usage of the tempfile module.
Specifically stopped using the dir argument. Backport of a8fe12417f778a76837f8e4f8503779f52a396ba from master
Diffstat (limited to 'tests/admin_views')
-rw-r--r--tests/admin_views/tests.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py
index 2e016515cf..e05a2598b5 100644
--- a/tests/admin_views/tests.py
+++ b/tests/admin_views/tests.py
@@ -3322,8 +3322,7 @@ class AdminInlineFileUploadTest(TestCase):
# Set up test Picture and Gallery.
# These must be set up here instead of in fixtures in order to allow Picture
# to use a NamedTemporaryFile.
- tdir = tempfile.gettempdir()
- file1 = tempfile.NamedTemporaryFile(suffix=".file1", dir=tdir)
+ file1 = tempfile.NamedTemporaryFile(suffix=".file1")
file1.write(b'a' * (2 ** 21))
filename = file1.name
file1.close()