mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #33464 -- Resolved output_field for combined numeric expressions with MOD operator.
This commit is contained in:
parent
bf47c71971
commit
cff1f888e9
2 changed files with 8 additions and 1 deletions
|
@ -2416,7 +2416,13 @@ class CombinedExpressionTests(SimpleTestCase):
|
|||
(IntegerField, FloatField, FloatField),
|
||||
(FloatField, IntegerField, FloatField),
|
||||
]
|
||||
connectors = [Combinable.ADD, Combinable.SUB, Combinable.MUL, Combinable.DIV]
|
||||
connectors = [
|
||||
Combinable.ADD,
|
||||
Combinable.SUB,
|
||||
Combinable.MUL,
|
||||
Combinable.DIV,
|
||||
Combinable.MOD,
|
||||
]
|
||||
for lhs, rhs, combined in tests:
|
||||
for connector in connectors:
|
||||
with self.subTest(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue