mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
[1.8.x] Refs #24324 -- Fixed Python 2 test failures when path to Django source contains non-ASCII characters.
Backport of 307c0f299a from master
This commit is contained in:
@@ -241,7 +241,7 @@ class TestFindStatic(CollectionTestCase, TestDefaults):
|
||||
self.assertIn('project', force_text(lines[1]))
|
||||
self.assertIn('apps', force_text(lines[2]))
|
||||
self.assertIn("Looking in the following locations:", force_text(lines[3]))
|
||||
searched_locations = ', '.join(lines[4:])
|
||||
searched_locations = ', '.join(force_text(x) for x in lines[4:])
|
||||
# AppDirectoriesFinder searched locations
|
||||
self.assertIn(os.path.join('staticfiles_tests', 'apps', 'test', 'static'),
|
||||
searched_locations)
|
||||
|
||||
Reference in New Issue
Block a user