Opened 4 years ago

Closed 3 years ago

#16203 closed Bug (fixed)

'servers' test fails on Windows

Reported by: intelliyole Owned by: nobody
Component: contrib.admin Version: 1.3
Severity: Release blocker Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The failure happens because the expected path is normalized with os.path.normcase, but the actually returned path is not.

C:\Python27\python.exe C:/src/django/django/tests/runtests.py --settings=test_sqlite servers
Creating test database for alias 'default'...
Creating test database for alias 'other'...
F
======================================================================
FAIL: test_media_urls (regressiontests.servers.tests.AdminMediaHandlerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\src\django\django\tests\regressiontests\servers\tests.py", line 62, in test_media_urls
    "Got: %s, Expected: %s, URL was: %s" % (output, desired, url))
AssertionError: Got: C:\src\django\django\django\contrib\admin\media\css\base.css, Expected: c:\src\django\django\django\contrib\admin\media\css\base.css, URL was: /static/admin/css/base.css

----------------------------------------------------------------------
Ran 1 test in 0.001s

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

Attachments (1)

16203.diff (598 bytes) - added by intelliyole 4 years ago.

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by intelliyole

comment:1 Changed 4 years ago by aaugustin

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

Should os.path.normcase should be added in the code, as suggested by the patch, or in the test case?

comment:2 Changed 3 years ago by aaugustin

  • Component changed from Uncategorized to contrib.admin
  • Resolution set to fixed
  • Severity changed from Normal to Release blocker
  • Status changed from new to closed

This was fixed at r17280.

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