diff options
Diffstat (limited to 'tests/files/tests.py')
-rw-r--r-- | tests/files/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/files/tests.py b/tests/files/tests.py index c72d948392..2401f26c8f 100644 --- a/tests/files/tests.py +++ b/tests/files/tests.py @@ -241,8 +241,8 @@ class InconsistentGetImageDimensionsBug(unittest.TestCase): class FileMoveSafeTests(unittest.TestCase): def test_file_move_overwrite(self): - handle_a, self.file_a = tempfile.mkstemp(dir=os.environ['DJANGO_TEST_TEMP_DIR']) - handle_b, self.file_b = tempfile.mkstemp(dir=os.environ['DJANGO_TEST_TEMP_DIR']) + handle_a, self.file_a = tempfile.mkstemp() + handle_b, self.file_b = tempfile.mkstemp() # file_move_safe should raise an IOError exception if destination file exists and allow_overwrite is False self.assertRaises(IOError, lambda: file_move_safe(self.file_a, self.file_b, allow_overwrite=False)) |