mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
This commit is contained in:
@@ -82,6 +82,7 @@ class DecimalFieldTests(TestCase):
|
||||
with self.assertRaisesMessage(ValidationError, expected_message):
|
||||
field.clean(Decimal('999'), None)
|
||||
|
||||
@unittest.skipIf(connection.vendor == 'oracle', 'Fixed in later versions of Django (#28932).')
|
||||
def test_roundtrip_with_trailing_zeros(self):
|
||||
"""Trailing zeros in the fractional part aren't truncated."""
|
||||
obj = Foo.objects.create(a='bar', d=Decimal('8.320'))
|
||||
|
||||
Reference in New Issue
Block a user