Skip to content

Commit

Permalink
Move the teardown to allow django to do it's thing.
Browse files Browse the repository at this point in the history
  • Loading branch information
njoyce committed Jan 23, 2015
1 parent 32f3fbe commit 872fda4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyamf/tests/adapters/test_django.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,16 @@ def tearDownModule():
if teardown_test_environment:
teardown_test_environment()

sys.path = context['sys.path']
util.replace_dict(context['sys.modules'], sys.modules)
util.replace_dict(context['os.environ'], os.environ)

if destroy_test_db:
destroy_test_db(settings.DATABASE_NAME, verbosity=0)

if storage:
rmtree(storage.location, ignore_errors=True)

sys.path = context['sys.path']
util.replace_dict(context['sys.modules'], sys.modules)
util.replace_dict(context['os.environ'], os.environ)


class BaseTestCase(unittest.TestCase):

Expand Down

0 comments on commit 872fda4

Please sign in to comment.