From 054c3f5463da59efdd2bf4c06b9e5bb8e17a615f Mon Sep 17 00:00:00 2001 From: Mihail Shinder Date: Sat, 20 Nov 2021 13:34:22 +0200 Subject: [PATCH] using get_command() instead of show() to avoid win32 hanging --- Tests/test_imageshow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tests/test_imageshow.py b/Tests/test_imageshow.py index c0161537b..ff2bafead 100644 --- a/Tests/test_imageshow.py +++ b/Tests/test_imageshow.py @@ -78,7 +78,8 @@ def test_commandviewer(): basecmd = "rm -f {file}" viewer = ImageShow.CommandViewer() im = hopper() - assert viewer.show(im, command=basecmd) == 1 + try: + viewer.get_command(im, command=basecmd) def test_ipythonviewer():