summaryrefslogtreecommitdiff
path: root/tests/forms_tests
diff options
context:
space:
mode:
authorFlorian Apolloner <florian@apolloner.eu>2014-05-26 00:07:15 +0200
committerFlorian Apolloner <florian@apolloner.eu>2014-05-26 00:07:57 +0200
commit47d345fe6dbd20b5b24671e432da11883eba261f (patch)
tree41a673848c658dc78e7e1f1e739ca0efeaa17af3 /tests/forms_tests
parent099625d760cfc07d8e579ea7deaff4ebdbf47574 (diff)
[1.7.x] Restored Python 2 compatibility.
Backport of ee51ab9d232e52d17cd5ad32e230fd715cffe638 from master.
Diffstat (limited to 'tests/forms_tests')
-rw-r--r--tests/forms_tests/tests/test_forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/forms_tests/tests/test_forms.py b/tests/forms_tests/tests/test_forms.py
index 93deec7bd1..a410e9a0f1 100644
--- a/tests/forms_tests/tests/test_forms.py
+++ b/tests/forms_tests/tests/test_forms.py
@@ -59,7 +59,7 @@ class FormsTestCase(TestCase):
self.assertHTMLEqual(str(p['birthday']), '<input type="text" name="birthday" value="1940-10-9" id="id_birthday" />')
nonexistenterror = "Key u?'nonexistentfield' not found in 'Person'"
- with self.assertRaisesRegex(KeyError, nonexistenterror):
+ with six.assertRaisesRegex(self, KeyError, nonexistenterror):
p['nonexistentfield']
self.fail('Attempts to access non-existent fields should fail.')