Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Made staticfiles tests independent of test execution order.

  • Loading branch information...
commit 82292141a07b9860add18c42b50ad98610a8250d 1 parent ace9ccf
Florian Apolloner authored July 25, 2012
3  tests/regressiontests/staticfiles_tests/tests.py
@@ -54,6 +54,9 @@ def setUp(self):
54 54
         # since we're planning on changing that we need to clear out the cache.
55 55
         default_storage._wrapped = empty
56 56
         storage.staticfiles_storage._wrapped = empty
  57
+        # Clear the cached staticfile finders, so they are reinitialized every
  58
+        # run and pick up changes in settings.STATICFILES_DIRS.
  59
+        finders._finders.clear()
57 60
 
58 61
         testfiles_path = os.path.join(TEST_ROOT, 'apps', 'test', 'static', 'test')
59 62
         # To make sure SVN doesn't hangs itself with the non-ASCII characters

0 notes on commit 8229214

Please sign in to comment.
Something went wrong with that request. Please try again.