diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2011-12-27 15:04:05 +0000 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2011-12-27 15:04:05 +0000 |
| commit | 12206bdf0fdafc6a4a3922b77902deaa3d5d4370 (patch) | |
| tree | 098dfa019943fda739aef3ab8eb67845e79f3a1c | |
| parent | cac7818e5ee83db486c170cb0002eb3f41d4fa84 (diff) | |
Fixed a test that was failing under Windows.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17280 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | tests/regressiontests/servers/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/regressiontests/servers/tests.py b/tests/regressiontests/servers/tests.py index ff49c74b9d..8cf1b78600 100644 --- a/tests/regressiontests/servers/tests.py +++ b/tests/regressiontests/servers/tests.py @@ -61,9 +61,9 @@ class AdminMediaHandlerTests(TestCase): self.fail("Got a ValueError exception, but wasn't expecting" " one. URL was: %s" % url) rel_path = os.path.join(*path_tuple) - desired = os.path.normcase( - os.path.join(self.admin_media_file_path, rel_path)) - self.assertEqual(output, desired, + desired = os.path.join(self.admin_media_file_path, rel_path) + self.assertEqual( + os.path.normcase(output), os.path.normcase(desired), "Got: %s, Expected: %s, URL was: %s" % (output, desired, url)) for url in bad_data: try: |
