Skip to content

Commit

Permalink
Update test_result_gui_viewer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
toruseo committed Mar 26, 2024
1 parent 1a11708 commit cae0684
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions tests/test_result_gui_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_())
ResultGUIViewer.launch_World_viewer(W, return_app_window=False)

0 comments on commit cae0684

Please sign in to comment.