From 16548cfc7c9d86ae7b0d13425ec7608f0571130c Mon Sep 17 00:00:00 2001 From: Markus Holtermann Date: Mon, 8 Sep 2014 22:01:58 +0200 Subject: [PATCH] Fixed broken test from da160d440f; refs #23418. --- tests/migrations/test_writer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/migrations/test_writer.py b/tests/migrations/test_writer.py index f6c866d7251..9a04df0553f 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")