diff --git a/tests/issues/issue_905.py b/tests/issues/issue_905.py index 8a4e29a3..88862f32 100644 --- a/tests/issues/issue_905.py +++ b/tests/issues/issue_905.py @@ -1,7 +1,7 @@ import sys from PyQt5 import Qt from vtk.qt.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor -from vedo import Plotter, Cone, printc +from vedo import Plotter, Cone, printc, settings class MainWindow(Qt.QMainWindow): @@ -53,6 +53,8 @@ def onClick(self): if __name__ == "__main__": + if settings.dry_run_mode: + sys.exit() app = Qt.QApplication(sys.argv) window = MainWindow() app.exec_() \ No newline at end of file diff --git a/tests/issues/issue_946.py b/tests/issues/issue_946.py index ca8e1801..6cc8295d 100644 --- a/tests/issues/issue_946.py +++ b/tests/issues/issue_946.py @@ -1,7 +1,7 @@ import sys from PyQt5.QtWidgets import QMainWindow, QApplication, QFrame, QVBoxLayout from vtkmodules.qt.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor -from vedo import dataurl, Volume +from vedo import dataurl, Volume, settings from vedo.applications import Slicer3DPlotter @@ -49,6 +49,8 @@ def onClose(self): if __name__ == "__main__": + if settings.dry_run_mode: + exit() app = QApplication(sys.argv) window = MainWindow() app.aboutToQuit.connect(window.onClose)