From 536ebaa048f69c18aa36448074f65f2741e35df5 Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Sun, 25 May 2014 23:14:50 +0200 Subject: Fixed a few warnings in the testsuite. --- tests/forms_tests/tests/test_forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/forms_tests') diff --git a/tests/forms_tests/tests/test_forms.py b/tests/forms_tests/tests/test_forms.py index 3aa73fd33e..f1976e680d 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']), '') 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.') -- cgit v1.3