diff options
| author | Florian Apolloner <florian@apolloner.eu> | 2014-05-26 00:07:15 +0200 |
|---|---|---|
| committer | Florian Apolloner <florian@apolloner.eu> | 2014-05-26 00:07:15 +0200 |
| commit | ee51ab9d232e52d17cd5ad32e230fd715cffe638 (patch) | |
| tree | 49f4f3bf49fb7f4a9fada4dae11ad5bf6d2581ae /tests | |
| parent | 9d1bf8f841af27c70d1fa5817e88d893ce7c0507 (diff) | |
Restored Python 2 compatibility.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/forms_tests/tests/test_forms.py | 2 |
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 f1976e680d..d6a0367975 100644 --- a/tests/forms_tests/tests/test_forms.py +++ b/tests/forms_tests/tests/test_forms.py @@ -60,7 +60,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.') |
