Commit 838adb23 authored by Julien Phalip's avatar Julien Phalip
Browse files

[1.3.X] Ensured that some staticfiles tests get properly cleaned up on...

[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
parent 2acf028b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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')