Skip to content
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: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 70edd4e commit 590bde88355b1736717d1d3936ebb4be56961a8c @alex alex committed
Showing with 6 additions and 4 deletions.
  1. +6 −4 tests/regressiontests/file_storage/
10 tests/regressiontests/file_storage/
@@ -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(
- '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"'),
- 'django.core.files.non_existing_storage.NonExistingStorage')
+ 'django.core.files.non_existing_storage.NonExistingStorage'
+ )
class FileStorageTests(unittest.TestCase):
storage_class = FileSystemStorage

0 comments on commit 590bde8

Please sign in to comment.
Something went wrong with that request. Please try again.