diff options
author | Julien Phalip <jphalip@gmail.com> | 2012-03-16 00:32:42 +0000 |
---|---|---|
committer | Julien Phalip <jphalip@gmail.com> | 2012-03-16 00:32:42 +0000 |
commit | 838adb231254dfec5b1fd4b7588c2cd9593debc7 (patch) | |
tree | 80a47d7c400a1f78192913a56b2c04283b458322 | |
parent | 2acf028b4b92c4085c04695b83b503d25797a637 (diff) | |
download | django-838adb231254dfec5b1fd4b7588c2cd9593debc7.tar.gz |
[1.3.X] Ensured that some staticfiles tests get properly cleaned up on teardown. Thanks to Claude Paroz for the patch.
Backport of r17747 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@17748 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r-- | tests/regressiontests/staticfiles_tests/tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/regressiontests/staticfiles_tests/tests.py b/tests/regressiontests/staticfiles_tests/tests.py index 4c03f6a5a9..b9b9c59790 100644 --- a/tests/regressiontests/staticfiles_tests/tests.py +++ b/tests/regressiontests/staticfiles_tests/tests.py @@ -276,6 +276,7 @@ class TestCollectionFilesOverride(BuildStaticTestCase): os.unlink(self.testfile_path) # set back original modification time os.utime(self.orig_path, (self.orig_atime, self.orig_mtime)) + super(TestCollectionFilesOverride, self).tearDown() def test_override(self): self.assertFileContains('file2.txt', 'duplicate of file2.txt') |