diff options
| author | Markus Holtermann <info@markusholtermann.eu> | 2014-09-08 22:01:58 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-09-08 16:51:34 -0400 |
| commit | 1f1a32928873a4e7cfe2f8f15631aa63df335490 (patch) | |
| tree | 25bc78cc16a50756a5abcc05b40646c30f4ae818 /tests | |
| parent | b0def3bcac1a2e1117050e00fa1b187a897f0c2e (diff) | |
[1.7.x] Fixed broken test from da160d440f; refs #23418.
Backport of 16548cfc7c from master
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/migrations/test_writer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/migrations/test_writer.py b/tests/migrations/test_writer.py index f6c866d725..9a04df0553 100644 --- a/tests/migrations/test_writer.py +++ b/tests/migrations/test_writer.py @@ -172,7 +172,7 @@ class WriterTests(TestCase): self.assertEqual(string, "migrations.test_writer.EmailValidator(message='hello')") validator = deconstructible(path="custom.EmailValidator")(EmailValidator)(message="hello") - with self.assertRaisesMessage(ImportError, "No module named 'custom'"): + with six.assertRaisesRegex(self, ImportError, "No module named '?custom'?"): MigrationWriter.serialize(validator) validator = deconstructible(path="django.core.validators.EmailValidator2")(EmailValidator)(message="hello") |
