Skip to content

Commit 5d459fe

Browse files
committed
skip-on-older-versions
1 parent 58b448b commit 5d459fe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_zmq_shell.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
ZMQInteractiveShell,
2323
)
2424

25+
try:
26+
from IPython.core.history import HistoryOutput
27+
except ImportError:
28+
HistoryOutput = None # type: ignore[assignment,misc]
29+
2530

2631
class NoReturnDisplayHook:
2732
"""
@@ -209,6 +214,7 @@ def test_unregister_hook(self):
209214
second = self.disp_pub.unregister_hook(hook)
210215
assert not bool(second)
211216

217+
@unittest.skipIf(HistoryOutput is None, "HistoryOutput not available")
212218
def test_display_stored_in_history(self):
213219
"""
214220
Test that published display data gets stored in shell history

0 commit comments

Comments
 (0)