diff options
author | Tim Graham <timograham@gmail.com> | 2016-12-07 17:42:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-07 17:42:31 -0500 |
commit | b5f0b3478dfcf0335f8ac2038d59f54b4a05f2a0 (patch) | |
tree | f3eb61bfdcf45c7b27fe3c480e9a7533746d1aad /tests/fixtures_regress | |
parent | f909fa84bedb51778a175aadfe4cfe7a91fe06cd (diff) | |
download | django-b5f0b3478dfcf0335f8ac2038d59f54b4a05f2a0.tar.gz |
Fixed #27579 -- Added aliases for Python 3's assertion names in SimpleTestCase.
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 cc787e432d..42f410d753 100644 --- a/tests/fixtures_regress/tests.py +++ b/tests/fixtures_regress/tests.py @@ -214,7 +214,7 @@ class TestFixtures(TestCase): """ Failing serializer import raises the proper error """ - with six.assertRaisesRegex(self, ImportError, r"No module named.*unexistent"): + with self.assertRaisesRegex(ImportError, r"No module named.*unexistent"): management.call_command( 'loaddata', 'bad_fixture1.unkn', |