diff --git a/tests/system/django_spanner/test_decimal.py b/tests/system/django_spanner/test_decimal.py index 778b5f8702..73df7e796b 100644 --- a/tests/system/django_spanner/test_decimal.py +++ b/tests/system/django_spanner/test_decimal.py @@ -91,7 +91,7 @@ def test_decimal_precision_limit(self): with self.assertRaises(ValueError): num_val.save() else: - with self.assertRaisesRegex(ProgrammingError): + with self.assertRaises(ProgrammingError): num_val.save() def test_decimal_update(self):