[pypy-svn] r55056 - pypy/django/tests
antocuni at codespeak.net
antocuni at codespeak.net
Wed May 21 12:20:23 CEST 2008
Author: antocuni
Date: Wed May 21 12:20:22 2008
New Revision: 55056
Modified:
pypy/django/tests/conftest.py
Log:
(antocuni, hpk) I hate global state :-/
Modified: pypy/django/tests/conftest.py
==============================================================================
--- pypy/django/tests/conftest.py (original)
+++ pypy/django/tests/conftest.py Wed May 21 12:20:22 2008
@@ -39,7 +39,10 @@
self.execute(self.mod, self.docstr)
finally:
destroy_test_db(old_name, 0)
- teardown_test_environment()
+ teardown_test_environment()
+ # manually clear some global state, as there is not API to do this :-(
+ from django.core import management
+ management._commands = None
def execute(self, mod, docstring):
from django.test.testcases import OutputChecker, DocTestRunner
More information about the Pypy-commit
mailing list