mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Removed references to the deprecated assertRaisesRegexp method.
This commit is contained in:
@@ -384,7 +384,7 @@ class ExpressionsNumericTests(TestCase):
|
||||
self.assertEqual(Number.objects.get(pk=n.pk).float, Approximate(256.900, places=3))
|
||||
|
||||
def test_incorrect_field_expression(self):
|
||||
with self.assertRaisesRegexp(FieldError, "Cannot resolve keyword u?'nope' into field.*"):
|
||||
with six.assertRaisesRegex(self, FieldError, "Cannot resolve keyword u?'nope' into field.*"):
|
||||
list(Employee.objects.filter(firstname=F('nope')))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user