summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorKaren Tracey <kmtracey@gmail.com>2011-11-13 19:05:02 +0000
committerKaren Tracey <kmtracey@gmail.com>2011-11-13 19:05:02 +0000
commit5de31cb8cb83c33d932d5ddf76ff81506c28bdff (patch)
tree87b208cbc06a67c34cfb94ccf851f000165c3a74 /django
parentb8353016b7d6a4046f4c30017987c2e75597285b (diff)
Refs #17215: Avoid generating 47 leftover tmp dirs during a clean test run.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/contrib/formtools/tests/wizard/wizardtests/forms.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/contrib/formtools/tests/wizard/wizardtests/forms.py b/django/contrib/formtools/tests/wizard/wizardtests/forms.py
index bbc96c3453..9013e89aef 100644
--- a/django/contrib/formtools/tests/wizard/wizardtests/forms.py
+++ b/django/contrib/formtools/tests/wizard/wizardtests/forms.py
@@ -1,3 +1,4 @@
+import os
import tempfile
from django import forms
@@ -10,7 +11,7 @@ from django.contrib.auth.models import User
from django.contrib.formtools.wizard.views import WizardView
-temp_storage_location = tempfile.mkdtemp()
+temp_storage_location = tempfile.mkdtemp(dir=os.environ.get('DJANGO_TEST_TEMP_DIR'))
temp_storage = FileSystemStorage(location=temp_storage_location)
class Page1(forms.Form):