Permalink
Browse files

Fixed a messy test case (regressiontests/templates/loaders) that coul…

…d cause future tests to fail by not cleaning up after itself.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7567 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
jacobian committed May 30, 2008
1 parent d53e8f1 commit 08d468db92f39dc819dcb4da243b6c58d4bd550e
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/regressiontests/templates/loaders.py
@@ -59,7 +59,11 @@ def setUp(self):
'templates/y.html' : StringIO.StringIO("y"),
'templates/x.txt' : StringIO.StringIO("x"),
})
+ self._old_installed_apps = settings.INSTALLED_APPS
settings.INSTALLED_APPS = []
+
+ def tearDown(self):
+ settings.INSTALLED_APPS = self._old_installed_apps
def test_empty(self):
"Loading any template on an empty egg should fail"

0 comments on commit 08d468d

Please sign in to comment.