Skip to content

Commit 1cf57b0

Browse files
Thomas Polasekfacebook-github-bot
authored andcommitted
Convert directory fbcode/pytorch to use the Ruff Formatter
Summary: Converts the directory specified to use the Ruff formatter in pyfmt ruff_dog If this diff causes merge conflicts when rebasing, please run `hg status -n -0 --change . -I '**/*.{py,pyi}' | xargs -0 arc pyfmt` on your diff, and amend any changes before rebasing onto latest. That should help reduce or eliminate any merge conflicts. allow-large-files Reviewed By: yhcharles Differential Revision: D66543433 fbshipit-source-id: 1e24ef6c1e230a3bceef28c73f9bb9118c3dab27
1 parent 4c7affb commit 1cf57b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/inputgen/test_variable_generation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ def test_nextup(self):
1919
self.assertEqual(nextup(-math.inf), -1.7976931348623157e308)
2020
self.assertEqual(nextup(-5e-324), 0.0)
2121
self.assertEqual(nextup(0.0), 5e-324)
22-
self.assertEqual(nextup(0.9999999999999999), 1.0),
22+
(self.assertEqual(nextup(0.9999999999999999), 1.0),)
2323
self.assertEqual(nextup(1.0), 1.0000000000000002)
2424
self.assertEqual(nextup(1.7976931348623157e308), math.inf)
2525
self.assertEqual(nextup(math.inf), math.inf)
2626

2727
def test_nextdown(self):
2828
self.assertEqual(nextdown(math.inf), 1.7976931348623157e308)
2929
self.assertEqual(nextdown(1.0000000000000002), 1.0)
30-
self.assertEqual(nextdown(1.0), 0.9999999999999999),
30+
(self.assertEqual(nextdown(1.0), 0.9999999999999999),)
3131
self.assertEqual(nextdown(5e-324), 0.0)
3232
self.assertEqual(nextdown(0.0), -5e-324)
3333
self.assertEqual(nextdown(-1.7976931348623157e308), -math.inf)

0 commit comments

Comments
 (0)