We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da863e1 commit 73c2343Copy full SHA for 73c2343
1 file changed
tests/test_magic.py
@@ -921,6 +921,7 @@ def test_notebook_export_json_with_output():
921
922
_ip = get_ipython()
923
_ip.history_manager.reset()
924
+ _ip.colors = "neutral"
925
926
commands = [
927
"1+1",
@@ -964,10 +965,6 @@ def test_notebook_export_json_with_output():
964
965
expected = expected_nb["cells"][i]
966
assert expected["source"] == command
967
assert actual["source"] == expected["source"]
- if command == "1/0":
968
- # remove traceback from comparison, as traceback formatting will vary
969
- actual["outputs"][0].pop("traceback")
970
- expected["outputs"][0].pop("traceback")
971
assert (
972
actual["outputs"] == expected["outputs"]
973
), f"Outputs do not match for cell {i+1} with source {command!r}"
0 commit comments