def test_aboutdialog(): app = QtWidgets.QApplication(sys.argv) d = AboutDialog() d.show() app.exec_()