From cae0684f3175f04d344ca9f3bd4f25da07474b69 Mon Sep 17 00:00:00 2001 From: Toru Seo <34780089+toruseo@users.noreply.github.com> Date: Tue, 26 Mar 2024 12:12:28 +0900 Subject: [PATCH] Update test_result_gui_viewer.py --- tests/test_result_gui_viewer.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/tests/test_result_gui_viewer.py b/tests/test_result_gui_viewer.py index 4f70222..e041738 100644 --- a/tests/test_result_gui_viewer.py +++ b/tests/test_result_gui_viewer.py @@ -42,14 +42,4 @@ def test_result_gui_viewer(): # Print summary of simulation result W.analyzer.print_simple_stats() - app, window = ResultGUIViewer.launch_World_viewer(W, return_app_window=True) - - # Shut down 5 sec later - from PyQt5.QtCore import QTimer - import sys - timer = QTimer() - timer.timeout.connect(window.close) - timer.start(1000*5) - assert True - with pytest.raises(SystemExit): - sys.exit(app.exec_()) \ No newline at end of file + ResultGUIViewer.launch_World_viewer(W, return_app_window=False)