mirror of
https://github.com/django/django.git
synced 2025-01-27 10:39:40 +00:00
Fixed a test that was failing under Windows.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17280 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
cac7818e5e
commit
12206bdf0f
@ -61,9 +61,9 @@ class AdminMediaHandlerTests(TestCase):
|
|||||||
self.fail("Got a ValueError exception, but wasn't expecting"
|
self.fail("Got a ValueError exception, but wasn't expecting"
|
||||||
" one. URL was: %s" % url)
|
" one. URL was: %s" % url)
|
||||||
rel_path = os.path.join(*path_tuple)
|
rel_path = os.path.join(*path_tuple)
|
||||||
desired = os.path.normcase(
|
desired = os.path.join(self.admin_media_file_path, rel_path)
|
||||||
os.path.join(self.admin_media_file_path, rel_path))
|
self.assertEqual(
|
||||||
self.assertEqual(output, desired,
|
os.path.normcase(output), os.path.normcase(desired),
|
||||||
"Got: %s, Expected: %s, URL was: %s" % (output, desired, url))
|
"Got: %s, Expected: %s, URL was: %s" % (output, desired, url))
|
||||||
for url in bad_data:
|
for url in bad_data:
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user