diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-02-21 19:18:54 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@oscaro.com> | 2015-02-23 16:55:27 +0100 |
| commit | a8fe12417f778a76837f8e4f8503779f52a396ba (patch) | |
| tree | fa3d9fc9e86cbfa4eb796e6e68c2692b859746e8 /tests/admin_views | |
| parent | 934400759de817471ff37d736686201d7ae34e82 (diff) | |
Normalized usage of the tempfile module.
Specifically stopped using the dir argument.
Diffstat (limited to 'tests/admin_views')
| -rw-r--r-- | tests/admin_views/tests.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index 4b662a948e..d57a321951 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -3315,8 +3315,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() |
