1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Avoid dependence on exact Python exception messages

This commit is contained in:
Ian Clelland
2012-09-28 10:17:40 -07:00
committed by Luke Plant
parent 02dda22832
commit bdcd2f6b10
4 changed files with 7 additions and 6 deletions

View File

@@ -78,7 +78,7 @@ class GetStorageClassTests(SimpleTestCase):
six.assertRaisesRegex(self,
ImproperlyConfigured,
('Error importing storage module django.core.files.non_existing_'
'storage: "No module named .*non_existing_storage"'),
'storage: "No module named .*non_existing_storage'),
get_storage_class,
'django.core.files.non_existing_storage.NonExistingStorage'
)