diff --git a/tests/regressiontests/utils/datastructures.py b/tests/regressiontests/utils/datastructures.py index 457ae858011..f65fc5c7702 100644 --- a/tests/regressiontests/utils/datastructures.py +++ b/tests/regressiontests/utils/datastructures.py @@ -222,7 +222,7 @@ class MultiValueDictTests(SimpleTestCase): # MultiValueDictKeyError: "Key 'lastname' not found in # " - self.assertRaisesRegex(MultiValueDictKeyError, + six.assertRaisesRegex(self, MultiValueDictKeyError, r'"Key \'lastname\' not found in