We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b42b389 commit c9952ecCopy full SHA for c9952ec
tests/test_magics.py
@@ -1,4 +1,3 @@
1
-from IPython.utils.io import capture_output
2
from pytest import raises
3
4
@@ -157,7 +156,6 @@ def test_space_outputs_to_console(ip, capsys):
157
156
assert capsys.readouterr().out == "100\n"
158
159
160
-def test_space_can_print_to_console(ip):
161
- with capture_output() as captured:
162
- ip.run_cell_magic(magic_name="space", line="tomato", cell="print(100)")
163
- assert captured.stdout == "100\n"
+def test_space_can_print_to_console(ip, capsys):
+ ip.run_cell_magic(magic_name="space", line="tomato", cell="print(100)")
+ assert capsys.readouterr().out == "100\n"
0 commit comments