Django

Code

Show
Ignore:
Timestamp:
05/30/08 18:24:23 (7 months ago)
Author:
jacob
Message:

Fixed a messy test case (regressiontests/templates/loaders) that could cause future tests to fail by not cleaning up after itself.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/regressiontests/templates/loaders.py

    r7565 r7567  
    6060            'templates/x.txt' : StringIO.StringIO("x"), 
    6161        }) 
     62        self._old_installed_apps = settings.INSTALLED_APPS 
    6263        settings.INSTALLED_APPS = [] 
     64         
     65    def tearDown(self): 
     66        settings.INSTALLED_APPS = self._old_installed_apps 
    6367 
    6468    def test_empty(self):