diff --git a/novelwriter/types.py b/novelwriter/types.py index 23455b97..e1b05ead 100644 --- a/novelwriter/types.py +++ b/novelwriter/types.py @@ -24,10 +24,7 @@ along with this program. If not, see . from __future__ import annotations from PyQt6.QtCore import Qt -from PyQt6.QtGui import ( - QColor, QFont, QPainter, QTextBlockFormat, QTextCharFormat, QTextCursor, - QTextFormat -) +from PyQt6.QtGui import QColor, QFont, QPainter, QTextCharFormat, QTextCursor, QTextFormat from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QHeaderView, QSizePolicy, QStyle # Qt Alignment Flags diff --git a/tests/conftest.py b/tests/conftest.py index 1097ae6c..5ffebaa7 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -172,13 +172,7 @@ def nwGUI(qtbot, monkeypatch, functionFixture): nwGUI.show() qtbot.wait(20) - yield nwGUI - - qtbot.wait(20) - nwGUI.closeMain() - qtbot.wait(20) - - return + return nwGUI ##