Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d1d4f07

Browse files
committed
reformat
1 parent 324dac2 commit d1d4f07

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

tests/test_interactiveshell.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ class DerivedInterrupt(KeyboardInterrupt):
5050
pass
5151

5252

53-
5453
def test_stream_performance(capsys) -> None:
5554
"""It should be fast to execute."""
5655
src = "for i in range(250_000): print(i)"
@@ -62,6 +61,7 @@ def test_stream_performance(capsys) -> None:
6261
duration = end - start
6362
assert duration < 10
6463

64+
6565
class InteractiveShellTestCase(unittest.TestCase):
6666
def test_naked_string_cells(self):
6767
"""Test that cells with only naked strings are fully executed"""
@@ -97,7 +97,6 @@ def test_run_cell_multiline(self):
9797
self.assertEqual(res.success, True)
9898
self.assertEqual(res.result, None)
9999

100-
101100
def test_multiline_string_cells(self):
102101
"Code sprinkled with multiline strings should execute (GH-306)"
103102
ip.run_cell("tmp=0")

tests/test_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def test_run_second(self):
298298
_ip.run_line_magic("run", empty.fname)
299299
assert _ip.user_ns["afunc"]() == 1
300300

301-
@pytest.mark.xfail(is_freethreaded, reason='C-third leaks on free-threaded python')
301+
@pytest.mark.xfail(is_freethreaded, reason="C-third leaks on free-threaded python")
302302
def test_tclass(self):
303303
mydir = os.path.dirname(__file__)
304304
tc = os.path.join(mydir, "tclass")

0 commit comments

Comments
 (0)