From fd1a4c7a94b8edba5ca21cbc46dc19120ea946bd Mon Sep 17 00:00:00 2001 From: jinqiang zhang Date: Fri, 17 Jul 2026 07:55:28 +0800 Subject: [PATCH 1/2] add testcase test_shellcmd_module_import --- ipyparallel/tests/test_shellcmd.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ipyparallel/tests/test_shellcmd.py b/ipyparallel/tests/test_shellcmd.py index 748dd83c..6fce5d51 100644 --- a/ipyparallel/tests/test_shellcmd.py +++ b/ipyparallel/tests/test_shellcmd.py @@ -128,6 +128,12 @@ ] +def test_shellcmd_module_import(): + import ipyparallel.shellcmd + + assert callable(ipyparallel.shellcmd.main) + + @pytest.fixture def shellcmd_test_cmd(): """returns a command that runs for 5 seconds""" From 7f3945f7b65576bbced3c2eb3c7dc95a6b7800ba Mon Sep 17 00:00:00 2001 From: jinqiang zhang Date: Fri, 17 Jul 2026 07:57:59 +0800 Subject: [PATCH 2/2] fix ShellCommandReceive ImportError File "/.../ipyparallel/shellcmd.py", line 19, in from .cluster.shellcmd import ShellCommandReceive ImportError: cannot import name 'ShellCommandReceive' from 'ipyparallel.cluster.shellcmd' --- ipyparallel/shellcmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipyparallel/shellcmd.py b/ipyparallel/shellcmd.py index 3f76c725..5755b2a4 100644 --- a/ipyparallel/shellcmd.py +++ b/ipyparallel/shellcmd.py @@ -16,7 +16,7 @@ import sys from argparse import ArgumentParser -from .cluster.shellcmd import ShellCommandReceive +from .cluster.shellcmd_receive import ShellCommandReceive def main():