mirror of
https://github.com/django/django.git
synced 2024-12-24 18:16:19 +00:00
Changed a test to be less specific about the exception string it expected. Test suite now passes 100% on PyPy.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14536 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
70edd4e103
commit
590bde8835
@ -73,12 +73,14 @@ class GetStorageClassTests(unittest.TestCase):
|
||||
"""
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user