This repository was archived by the owner on Jun 8, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
tests/system/django_spanner Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77from .models import Author , Number
88from django .test import TransactionTestCase
99from django .db import connection , ProgrammingError
10- from django .db .utils import IntegrityError
1110from decimal import Decimal
1211from tests .system .django_spanner .utils import (
1312 setup_instance ,
@@ -89,12 +88,10 @@ def test_decimal_precision_limit(self):
8988 """
9089 num_val = Number (num = Decimal (1 ) / Decimal (3 ))
9190 if USE_EMULATOR :
92- msg = "The NUMERIC type supports 38 digits of precision and 9 digits of scale."
93- with self .assertRaisesRegex (IntegrityError , msg ):
91+ with self .assertRaises (ValueError ):
9492 num_val .save ()
9593 else :
96- msg = "400 Invalid value for bind parameter a0: Expected NUMERIC."
97- with self .assertRaisesRegex (ProgrammingError , msg ):
94+ with self .assertRaisesRegex (ProgrammingError ):
9895 num_val .save ()
9996
10097 def test_decimal_update (self ):
You can’t perform that action at this time.
0 commit comments