Skip to content

Commit 4e1f93b

Browse files
committed
Do some reformatting.
1 parent 0ba58a3 commit 4e1f93b

1 file changed

Lines changed: 21 additions & 6 deletions

File tree

Lib/test/test_traceback.py

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4621,10 +4621,20 @@ def test_suggestions_extension(self):
46214621
# Check that the C extension is available
46224622
import _suggestions
46234623

4624-
self.assertEqual(_suggestions._generate_suggestions(["hello", "world"], "hell"),
4625-
"hello")
4626-
self.assertEqual(_suggestions._generate_suggestions(["hovercraft"], "eels"),
4627-
None)
4624+
self.assertEqual(
4625+
_suggestions._generate_suggestions(
4626+
["hello", "world"],
4627+
"hell"
4628+
),
4629+
"hello"
4630+
)
4631+
self.assertEqual(
4632+
_suggestions._generate_suggestions(
4633+
["hovercraft"],
4634+
"eels"
4635+
),
4636+
None
4637+
)
46284638

46294639
# gh-131936: _Py_CalculateSuggestions wanted exactly a list
46304640
class MyList(list):
@@ -4633,8 +4643,13 @@ def __getitem__(self, *_):
46334643
# shouldn't be a problem.
46344644
raise RuntimeError("evil")
46354645

4636-
self.assertEqual(_suggestions._generate_suggestions(MyList(["spanish", "inquisition"]), "spani"),
4637-
"spanish")
4646+
self.assertEqual(
4647+
_suggestions._generate_suggestions(
4648+
MyList(["spanish", "inquisition"]),
4649+
"spani"
4650+
),
4651+
"spanish"
4652+
)
46384653

46394654

46404655
class TestColorizedTraceback(unittest.TestCase):

0 commit comments

Comments
 (0)