This commit is contained in:
parent
2679cdbea2
commit
7c939ae6e4
@ -82,6 +82,7 @@ class DecimalFieldTests(TestCase):
|
|||||||
with self.assertRaisesMessage(ValidationError, expected_message):
|
with self.assertRaisesMessage(ValidationError, expected_message):
|
||||||
field.clean(Decimal('999'), None)
|
field.clean(Decimal('999'), None)
|
||||||
|
|
||||||
|
@unittest.skipIf(connection.vendor == 'oracle', 'Fixed in later versions of Django (#28932).')
|
||||||
def test_roundtrip_with_trailing_zeros(self):
|
def test_roundtrip_with_trailing_zeros(self):
|
||||||
"""Trailing zeros in the fractional part aren't truncated."""
|
"""Trailing zeros in the fractional part aren't truncated."""
|
||||||
obj = Foo.objects.create(a='bar', d=Decimal('8.320'))
|
obj = Foo.objects.create(a='bar', d=Decimal('8.320'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user