summaryrefslogtreecommitdiff
path: root/tests/forms_tests
diff options
context:
space:
mode:
authorFlorian Apolloner <florian@apolloner.eu>2014-05-25 23:14:50 +0200
committerFlorian Apolloner <florian@apolloner.eu>2014-05-25 23:15:31 +0200
commit1992d55eb3731bccef549c2cede08cfcca1309de (patch)
treee06ec6f2451da7ffe8386378e67c54e7cebae84d /tests/forms_tests
parent0c685ab64fcfb46bcd8cfa9b2d2a22d94f6223b3 (diff)
[1.7.x] Fixed a few warnings in the testsuite.
Backport of 536ebaa048f69c18aa36448074f65f2741e35df5 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 a2ffc3b1fe..93deec7bd1 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.assertRaisesRegexp(KeyError, nonexistenterror):
+ with self.assertRaisesRegex(KeyError, nonexistenterror):
p['nonexistentfield']
self.fail('Attempts to access non-existent fields should fail.')