Skip to content

Commit 73c2343

Browse files
committed
enhance-test
1 parent da863e1 commit 73c2343

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

tests/test_magic.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -921,6 +921,7 @@ def test_notebook_export_json_with_output():
921921

922922
_ip = get_ipython()
923923
_ip.history_manager.reset()
924+
_ip.colors = "neutral"
924925

925926
commands = [
926927
"1+1",
@@ -964,10 +965,6 @@ def test_notebook_export_json_with_output():
964965
expected = expected_nb["cells"][i]
965966
assert expected["source"] == command
966967
assert actual["source"] == expected["source"]
967-
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")
971968
assert (
972969
actual["outputs"] == expected["outputs"]
973970
), f"Outputs do not match for cell {i+1} with source {command!r}"

0 commit comments

Comments
 (0)