Skip to content

Commit 158c526

Browse files
committed
Update
[ghstack-poisoned]
1 parent 5ed0c8d commit 158c526

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/inductor/test_indexing.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
from torch._inductor.test_case import TestCase as InductorTestCase
1515
from torch._inductor.utils import run_and_get_triton_code
1616
from torch.testing._internal.common_utils import (
17-
IS_MACOS,
1817
instantiate_parametrized_tests,
18+
IS_MACOS,
1919
parametrize,
2020
)
2121
from torch.testing._internal.inductor_utils import GPU_TYPE, HAS_CPU, HAS_GPU
@@ -324,7 +324,9 @@ def test_print_mod(self):
324324
x = sympy.Symbol("x", integer=True)
325325
expr = Mod(x - 1, 2)
326326
self.assertExpectedInline(pexpr(expr), """((-1) + x) % 2""")
327-
self.assertExpectedInline(cexpr(expr), f"""((-1{LONG_SUFFIX}) + x) % 2{LONG_SUFFIX}""")
327+
self.assertExpectedInline(
328+
cexpr(expr), f"""((-1{LONG_SUFFIX}) + x) % 2{LONG_SUFFIX}"""
329+
)
328330
self.assertExpectedInline(texpr(expr), """((-1) + x) % 2""")
329331

330332
expr = (x - 10) % x

0 commit comments

Comments
 (0)