diff options
author | Tim Graham <timograham@gmail.com> | 2017-01-19 21:10:33 -0500 |
---|---|---|
committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2017-01-20 08:49:47 +0100 |
commit | 109b33f64c8d3f48c9e0bd3ea8d42fe6f3cb02b7 (patch) | |
tree | ce4c2311d5993e2e6b70062530834269314c0eb1 /tests/fixtures_regress | |
parent | dc8834cad41aa407f402dc54788df3cd37ab3e22 (diff) | |
download | django-109b33f64c8d3f48c9e0bd3ea8d42fe6f3cb02b7.tar.gz |
Refs #23919 -- Simplified assertRaisesRegex()'s that accounted for Python 2.
Diffstat (limited to 'tests/fixtures_regress')
-rw-r--r-- | tests/fixtures_regress/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fixtures_regress/tests.py b/tests/fixtures_regress/tests.py index a3ac7f5977..538fee55a2 100644 --- a/tests/fixtures_regress/tests.py +++ b/tests/fixtures_regress/tests.py @@ -197,7 +197,7 @@ class TestFixtures(TestCase): """ Failing serializer import raises the proper error """ - with self.assertRaisesRegex(ImportError, r"No module named.*unexistent"): + with self.assertRaisesMessage(ImportError, "No module named 'unexistent'"): management.call_command( 'loaddata', 'bad_fixture1.unkn', |