#27741: staticfiles_tests test_corrupt_intermediate_files fails intermittently
when
run in parallel
-------------------------------------+------------------------------------
Reporter: Chris Lamb | Owner: nobody
Type: Bug | Status: new
Component: contrib.staticfiles | Version: 1.11
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+------------------------------------
Comment (by Tim Graham):
I'm feeling a bit lazy about isolating the tests using the approach Claude
suggested. How about this patch, at least for now:
{{{ #!diff
diff --git a/tests/staticfiles_tests/test_storage.py
b/tests/staticfiles_tests/test_storage.py
index 7e7b31f..11d1cf3 100644
--- a/tests/staticfiles_tests/test_storage.py
+++ b/tests/staticfiles_tests/test_storage.py
@@ -290,7 +290,7 @@ class TestCollectionCachedStorage(TestHashedFiles,
CollectionTestCase):
# high enough.
configured_storage.max_post_process_passes = 1
# File without intermediates that can be rehashed without a
problem.
- self.hashed_file_path('cached/css/img/window.png')
+ self.hashed_file_path('cached/css/fonts/font.svg')
# File with too many intermediates to rehash with the low max
# post-process passes.
err_msg = "The name 'cached/styles.css' could not be hashed with
%r." % (configured_storage._wrapped,)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27741#comment:21>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/063.1a67fa8c2a7731bdd1cd2fdce0ffce86%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.