mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-23 22:49:50 +03:00
Update tests/test_fields.py
This commit is contained in:
parent
00cf78362d
commit
10553a0b3d
|
@ -1078,7 +1078,7 @@ class TestFloatFieldOverFlowError(TestCase):
|
|||
field = serializers.FloatField()
|
||||
with pytest.raises(serializers.ValidationError) as exec_info:
|
||||
field.to_internal_value(data=math.factorial(171))
|
||||
assert "int too large to convert to float" in str(exec_info.value.detail)
|
||||
assert "Integer value too large to convert to float" in str(exec_info.value.detail)
|
||||
|
||||
|
||||
class TestDecimalField(FieldValues):
|
||||
|
|
Loading…
Reference in New Issue
Block a user