Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Made staticfiles tests independent of test execution order.

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

0 comments on commit 8229214

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