diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/regressiontests/bug639/tests.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/regressiontests/bug639/tests.py b/tests/regressiontests/bug639/tests.py index c05ef120e1..f9596d06cb 100644 --- a/tests/regressiontests/bug639/tests.py +++ b/tests/regressiontests/bug639/tests.py @@ -32,4 +32,11 @@ class Bug639Test(unittest.TestCase): p = manip.save(qd) # Check the savecount stored on the object (see the model) - self.assertEqual(p._savecount, 1)
\ No newline at end of file + self.assertEqual(p._savecount, 1) + + def tearDown(self): + """ + Make sure to delete the "uploaded" file to avoid clogging /tmp. + """ + p = Photo.objects.get() + os.unlink(p.get_image_filename())
\ No newline at end of file |
