Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed a test to be less specific about the exception string it expe…

…cted. Test suite now passes 100% on PyPy.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14536 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 590bde88355b1736717d1d3936ebb4be56961a8c 1 parent 70edd4e
@alex alex authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 tests/regressiontests/file_storage/tests.py
View
10 tests/regressiontests/file_storage/tests.py
@@ -73,12 +73,14 @@ def test_get_nonexisting_storage_module(self):
"""
get_storage_class raises an error if the requested module don't exist.
"""
- self.assertRaisesErrorWithMessage(
+ # Error message may or may not be the fully qualified path.
+ self.assertRaisesRegexp(
ImproperlyConfigured,
- 'Error importing storage module django.core.files.non_existing_'\
- 'storage: "No module named non_existing_storage"',
+ ('Error importing storage module django.core.files.non_existing_'
+ 'storage: "No module named .*non_existing_storage"'),
get_storage_class,
- 'django.core.files.non_existing_storage.NonExistingStorage')
+ 'django.core.files.non_existing_storage.NonExistingStorage'
+ )
class FileStorageTests(unittest.TestCase):
storage_class = FileSystemStorage
Please sign in to comment.
Something went wrong with that request. Please try again.