﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27741	staticfiles_tests test_corrupt_intermediate_files fails intermittently when run in parallel	Chris Lamb	nobody	"{{{
======================================================================
ERROR: test_corrupt_intermediate_files (staticfiles_tests.test_storage.TestCollectionCachedStorage)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""/usr/lib/python2.7/unittest/case.py"", line 329, in run
    testMethod()
  File ""/tmp/buildd/python-django-1.11~alpha1/tests/staticfiles_tests/test_storage.py"", line 296, in test_corrupt_intermediate_files
    self.hashed_file_path('cached/css/img/window.png')
  File ""/tmp/buildd/python-django-1.11~alpha1/tests/staticfiles_tests/test_storage.py"", line 24, in hashed_file_path
    fullpath = test.render_template(test.static_template_snippet(path))
  File ""/tmp/buildd/python-django-1.11~alpha1/tests/staticfiles_tests/cases.py"", line 38, in render_template
    return template.render(Context(**kwargs)).strip()
  File ""/tmp/buildd/python-django-1.11~alpha1/django/template/base.py"", line 207, in render
    return self._render(context)
  File ""/tmp/buildd/python-django-1.11~alpha1/django/test/utils.py"", line 107, in instrumented_test_render
    return self.nodelist.render(context)
  File ""/tmp/buildd/python-django-1.11~alpha1/django/template/base.py"", line 990, in render
    bit = node.render_annotated(context)
  File ""/tmp/buildd/python-django-1.11~alpha1/django/template/base.py"", line 957, in render_annotated
    return self.render(context)
  File ""/tmp/buildd/python-django-1.11~alpha1/django/templatetags/static.py"", line 105, in render
    url = self.url(context)
  File ""/tmp/buildd/python-django-1.11~alpha1/django/templatetags/static.py"", line 102, in url
    return self.handle_simple(path)
  File ""/tmp/buildd/python-django-1.11~alpha1/django/templatetags/static.py"", line 117, in handle_simple
    return staticfiles_storage.url(path)
  File ""/tmp/buildd/python-django-1.11~alpha1/django/contrib/staticfiles/storage.py"", line 162, in url
    return self._url(self.stored_name, name, force)
  File ""/tmp/buildd/python-django-1.11~alpha1/django/contrib/staticfiles/storage.py"", line 141, in _url
    hashed_name = hashed_name_func(*args)
  File ""/tmp/buildd/python-django-1.11~alpha1/django/contrib/staticfiles/storage.py"", line 365, in stored_name
    self.hashed_name(name, content=None, filename=intermediate_name)
  File ""/tmp/buildd/python-django-1.11~alpha1/django/contrib/staticfiles/storage.py"", line 101, in hashed_name
    raise ValueError(""The file '%s' could not be found with %r."" % (filename, self))
ValueError: The file 'cached/css/img/window.a836fe39729e.png' could not be found with <django.contrib.staticfiles.storage.CachedStaticFilesStorage object at 0x7f43b6114e90>.

----------------------------------------------------------------------
Ran 11906 tests in 171.474s

FAILED (errors=1, skipped=1152, expected failures=4)
}}}

This is from the 1.11 alpha1 tarball, rather than git itself."	Bug	closed	contrib.staticfiles	1.11	Release blocker	fixed		David Sanders	Accepted	0	0	0	0	0	0
