Opened 5 years ago

Closed 5 years ago

#26924 closed Bug (fixed)

i18n.test_extraction.IgnoredExtractorTests.test_media_static_dirs_ignored broken on OS X

Reported by: Tobias McNulty Owned by: Tobias McNulty
Component: Internationalization Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Confirmed by myself and lapilofu (Harris). Git bisect shows https://github.com/django/django/commit/faeeb84edfebecf5a5f40df9ef816e5f1cd457c6 (ticket #26677) as the commit that broke it.

$ PYTHONPATH=.. python runtests.py i18n.test_extraction.IgnoredExtractorTests.test_media_static_dirs_ignored
Testing against Django installed in '/Users/tobias/caktus/django/django' with up to 4 processes
Creating test database for alias 'default'...
Creating test database for alias 'other'...
F
======================================================================
FAIL: test_media_static_dirs_ignored (i18n.test_extraction.IgnoredExtractorTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/tobias/caktus/django/tests/i18n/test_extraction.py", line 516, in test_media_static_dirs_ignored
    self.assertIn("ignoring directory media_root", out)
AssertionError: 'ignoring directory media_root' not found in 'examining files with the extensions: .py, .html and .txt\nignoring file code.sample in .\nignoring file javascript.js in .\nignoring file not_utf8.sample in .\nignoring file __init__.cpython-35.pyc in ./__pycache__\nignoring file javascript.js in ./someapp/static\nignoring file javascript_ignored.js in ./static\nignoring file comments.thtml in ./templates\nignoring file plural.djtpl in ./templates\nignoring file template_with_error.tpl in ./templates\nprocessing file __init__.py in .\nprocessing file ignored.html in ./ignore_dir\nprocessing file media_ignored.html in ./media_root\nprocessing file static_ignored.html in ./static\nprocessing file empty.html in ./templates\nprocessing file ignored.html in ./templates/subdir\nprocessing file test.html in ./templates\nprocessing file xxx_ignored.html in ./templates\nprocessing locale de\ncopying plural forms: "Plural-Forms: nplurals=2; plural=(n != 1);\\n"\n'

----------------------------------------------------------------------
Ran 1 test in 0.084s

FAILED (failures=1)
Destroying test database for alias 'default'...
Destroying test database for alias 'other'...

Change History (3)

comment:1 Changed 5 years ago by Tobias McNulty

Has patch: set
Owner: changed from Tobias McNulty to Tobias McNulty
Status: newassigned

comment:2 Changed 5 years ago by Tim Graham

Component: Testing frameworkInternationalization
Triage Stage: UnreviewedReady for checkin

comment:3 Changed 5 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: assignedclosed

In 9157867:

Fixed #26924 -- Fixed i18n test failure on Mac OS X.

Note: See TracTickets for help on using tickets.
Back to Top