Skip to content

Commit

Permalink
[1.3.X] Ensured that some staticfiles tests get properly cleaned up o…
Browse files Browse the repository at this point in the history
…n 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
  • Loading branch information
jphalip committed Mar 16, 2012
1 parent 2acf028 commit 838adb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/regressiontests/staticfiles_tests/tests.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ def tearDown(self):
os.unlink(self.testfile_path) os.unlink(self.testfile_path)
# set back original modification time # set back original modification time
os.utime(self.orig_path, (self.orig_atime, self.orig_mtime)) os.utime(self.orig_path, (self.orig_atime, self.orig_mtime))
super(TestCollectionFilesOverride, self).tearDown()


def test_override(self): def test_override(self):
self.assertFileContains('file2.txt', 'duplicate of file2.txt') self.assertFileContains('file2.txt', 'duplicate of file2.txt')
Expand Down

0 comments on commit 838adb2

Please sign in to comment.