diff options
| author | Karen Tracey <kmtracey@gmail.com> | 2011-11-13 19:05:02 +0000 |
|---|---|---|
| committer | Karen Tracey <kmtracey@gmail.com> | 2011-11-13 19:05:02 +0000 |
| commit | 5de31cb8cb83c33d932d5ddf76ff81506c28bdff (patch) | |
| tree | 87b208cbc06a67c34cfb94ccf851f000165c3a74 /tests/regressiontests/admin_views/models.py | |
| parent | b8353016b7d6a4046f4c30017987c2e75597285b (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 'tests/regressiontests/admin_views/models.py')
| -rw-r--r-- | tests/regressiontests/admin_views/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/regressiontests/admin_views/models.py b/tests/regressiontests/admin_views/models.py index fce02189f5..d1a5d19dd0 100644 --- a/tests/regressiontests/admin_views/models.py +++ b/tests/regressiontests/admin_views/models.py @@ -246,7 +246,7 @@ class EmptyModel(models.Model): return "Primary key = %s" % self.id -temp_storage = FileSystemStorage(tempfile.mkdtemp()) +temp_storage = FileSystemStorage(tempfile.mkdtemp(dir=os.environ['DJANGO_TEST_TEMP_DIR'])) UPLOAD_TO = os.path.join(temp_storage.location, 'test_upload') @@ -547,4 +547,4 @@ class PrePopulatedPostLargeSlug(models.Model): title = models.CharField(max_length=100) published = models.BooleanField() slug = models.SlugField(max_length=1000) -
\ No newline at end of file + |
