Skip to content

Commit 3391470

Browse files
committed
ignore windows error for now
1 parent 7c95dfa commit 3391470

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/test_zmq_shell.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,12 @@ def test_zmq_interactive_shell(kernel):
249249
if os.name == "posix":
250250
shell.system_piped("ls")
251251
else:
252-
shell.system_piped("dir")
252+
# This should be fixed by https://github.com/ipython/ipython/pull/14749,
253+
# but may take some time to be released,
254+
# once old, enough remove this catch warnings.
255+
with warnings.catch_warnings():
256+
warnings.filterwarnings("ignore", category=ResourceWarning, message="unclosed file")
257+
shell.system_piped("dir")
253258
shell.ask_exit()
254259

255260

0 commit comments

Comments
 (0)