Skip to content

Commit 44ee7f0

Browse files
committed
fix test
1 parent 53dd383 commit 44ee7f0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Lib/test/test_capi/test_opt.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3382,9 +3382,7 @@ def testfunc(args):
33823382
self.assertIn("_BINARY_OP_TRUEDIV_FLOAT_INPLACE_RIGHT", uops)
33833383

33843384
def test_float_truediv_type_propagation(self):
3385-
# (a+b) / (c+d) - (e+f) / (g+h): all additions produce known-float
3386-
# results, so both divisions are specialized. The subtraction between
3387-
# the two division results should use inplace.
3385+
# Test the _BINARY_OP_TRUEDIV_FLOAT propagates type information
33883386
def testfunc(args):
33893387
a, b, n = args
33903388
total = 0.0
@@ -3399,7 +3397,7 @@ def testfunc(args):
33993397
self.assertAlmostEqual(res, expected)
34003398
self.assertIsNotNone(ex)
34013399
uops = get_opnames(ex)
3402-
self.assertIn("_BINARY_OP_TRUEDIV_FLOAT_INPLACE", uops)
3400+
self.assertIn("_BINARY_OP_TRUEDIV_FLOAT", uops)
34033401
self.assertIn("_BINARY_OP_SUBTRACT_FLOAT_INPLACE", uops)
34043402

34053403
def test_float_truediv_unique_result_enables_inplace(self):

0 commit comments

Comments
 (0)