summaryrefslogtreecommitdiff
path: root/tests/fixtures_regress
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-12-07 17:42:31 -0500
committerGitHub <noreply@github.com>2016-12-07 17:42:31 -0500
commitb5f0b3478dfcf0335f8ac2038d59f54b4a05f2a0 (patch)
treef3eb61bfdcf45c7b27fe3c480e9a7533746d1aad /tests/fixtures_regress
parentf909fa84bedb51778a175aadfe4cfe7a91fe06cd (diff)
downloaddjango-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.py2
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',