diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2008-05-30 23:24:23 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2008-05-30 23:24:23 +0000 |
| commit | 08d468db92f39dc819dcb4da243b6c58d4bd550e (patch) | |
| tree | 719a6d5eb3f16608c5f497cade3d4ea47030f4c0 /tests | |
| parent | d53e8f1285247a2a9579f30982086cc495c1098d (diff) | |
Fixed a messy test case (regressiontests/templates/loaders) that could 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
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/regressiontests/templates/loaders.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/regressiontests/templates/loaders.py b/tests/regressiontests/templates/loaders.py index bc630dad49..82e3c622d1 100644 --- a/tests/regressiontests/templates/loaders.py +++ b/tests/regressiontests/templates/loaders.py @@ -59,7 +59,11 @@ class EggLoader(unittest.TestCase): '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" |
