Skip to content

Commit

Permalink
fix import/module import checks in editor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
th3w1zard1 committed Nov 12, 2023
1 parent 6fe1546 commit 89e12ab
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion tests/gui/editors/test_bwm_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
try:
from PyQt5.QtTest import QTest
from PyQt5.QtWidgets import QApplication
except ImportError:
except (ImportError, ModuleNotFoundError):
QTest, QApplication = None, None

if getattr(sys, "frozen", False) is False:
Expand Down
2 changes: 1 addition & 1 deletion tests/gui/editors/test_dlg_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
try:
from PyQt5.QtTest import QTest
from PyQt5.QtWidgets import QApplication
except ImportError:
except (ImportError, ModuleNotFoundError):
QTest, QApplication = None, None

if getattr(sys, "frozen", False) is False:
Expand Down
2 changes: 1 addition & 1 deletion tests/gui/editors/test_erf_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
try:
from PyQt5.QtTest import QTest
from PyQt5.QtWidgets import QApplication
except ImportError:
except (ImportError, ModuleNotFoundError):
QTest, QApplication = None, None

if getattr(sys, "frozen", False) is False:
Expand Down
2 changes: 1 addition & 1 deletion tests/gui/editors/test_gff_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
try:
from PyQt5.QtTest import QTest
from PyQt5.QtWidgets import QApplication
except ImportError:
except (ImportError, ModuleNotFoundError):
QTest, QApplication = None, None

if getattr(sys, "frozen", False) is False:
Expand Down
2 changes: 1 addition & 1 deletion tests/gui/editors/test_git_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
try:
from PyQt5.QtTest import QTest
from PyQt5.QtWidgets import QApplication
except ImportError:
except (ImportError, ModuleNotFoundError):
QTest, QApplication = None, None

if getattr(sys, "frozen", False) is False:
Expand Down
2 changes: 1 addition & 1 deletion tests/gui/editors/test_jrl_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
try:
from PyQt5.QtTest import QTest
from PyQt5.QtWidgets import QApplication
except ImportError:
except (ImportError, ModuleNotFoundError):
QTest, QApplication = None, None

if getattr(sys, "frozen", False) is False:
Expand Down
2 changes: 1 addition & 1 deletion tests/gui/editors/test_nss_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
try:
from PyQt5.QtTest import QTest
from PyQt5.QtWidgets import QApplication
except ImportError:
except (ImportError, ModuleNotFoundError):
QTest, QApplication = None, None

if getattr(sys, "frozen", False) is False:
Expand Down
2 changes: 1 addition & 1 deletion tests/gui/editors/test_ssf_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
try:
from PyQt5.QtTest import QTest
from PyQt5.QtWidgets import QApplication
except ImportError:
except (ImportError, ModuleNotFoundError):
QTest, QApplication = None, None

if getattr(sys, "frozen", False) is False:
Expand Down
2 changes: 1 addition & 1 deletion tests/gui/editors/test_tlk_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
try:
from PyQt5.QtTest import QTest
from PyQt5.QtWidgets import QApplication
except ImportError:
except (ImportError, ModuleNotFoundError):
QTest, QApplication = None, None

if getattr(sys, "frozen", False) is False:
Expand Down
2 changes: 1 addition & 1 deletion tests/gui/editors/test_tpc_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
try:
from PyQt5.QtTest import QTest
from PyQt5.QtWidgets import QApplication
except ImportError:
except (ImportError, ModuleNotFoundError):
QTest, QApplication = None, None

if getattr(sys, "frozen", False) is False:
Expand Down
2 changes: 1 addition & 1 deletion tests/gui/editors/test_twoda_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
try:
from PyQt5.QtTest import QTest
from PyQt5.QtWidgets import QApplication
except ImportError:
except (ImportError, ModuleNotFoundError):
QTest, QApplication = None, None

if getattr(sys, "frozen", False) is False:
Expand Down
2 changes: 1 addition & 1 deletion tests/gui/editors/test_txt_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
try:
from PyQt5.QtTest import QTest
from PyQt5.QtWidgets import QApplication
except ImportError:
except (ImportError, ModuleNotFoundError):
QTest, QApplication = None, None

if getattr(sys, "frozen", False) is False:
Expand Down
2 changes: 1 addition & 1 deletion tests/gui/editors/test_utc_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
try:
from PyQt5.QtTest import QTest
from PyQt5.QtWidgets import QApplication
except ImportError:
except (ImportError, ModuleNotFoundError):
QTest, QApplication = None, None

if getattr(sys, "frozen", False) is False:
Expand Down
2 changes: 1 addition & 1 deletion tests/gui/editors/test_utd_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
try:
from PyQt5.QtTest import QTest
from PyQt5.QtWidgets import QApplication
except ImportError:
except (ImportError, ModuleNotFoundError):
QTest, QApplication = None, None

if getattr(sys, "frozen", False) is False:
Expand Down
2 changes: 1 addition & 1 deletion tests/gui/editors/test_ute_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
try:
from PyQt5.QtTest import QTest
from PyQt5.QtWidgets import QApplication
except ImportError:
except (ImportError, ModuleNotFoundError):
QTest, QApplication = None, None

if getattr(sys, "frozen", False) is False:
Expand Down
2 changes: 1 addition & 1 deletion tests/gui/editors/test_uti_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
try:
from PyQt5.QtTest import QTest
from PyQt5.QtWidgets import QApplication
except ImportError:
except (ImportError, ModuleNotFoundError):
QTest, QApplication = None, None

if getattr(sys, "frozen", False) is False:
Expand Down
2 changes: 1 addition & 1 deletion tests/gui/editors/test_utm_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
try:
from PyQt5.QtTest import QTest
from PyQt5.QtWidgets import QApplication
except ImportError:
except (ImportError, ModuleNotFoundError):
QTest, QApplication = None, None

if getattr(sys, "frozen", False) is False:
Expand Down
2 changes: 1 addition & 1 deletion tests/gui/editors/test_utp_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
try:
from PyQt5.QtTest import QTest
from PyQt5.QtWidgets import QApplication
except ImportError:
except (ImportError, ModuleNotFoundError):
QTest, QApplication = None, None

if getattr(sys, "frozen", False) is False:
Expand Down
2 changes: 1 addition & 1 deletion tests/gui/editors/test_uts_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
try:
from PyQt5.QtTest import QTest
from PyQt5.QtWidgets import QApplication
except ImportError:
except (ImportError, ModuleNotFoundError):
QTest, QApplication = None, None

if getattr(sys, "frozen", False) is False:
Expand Down
2 changes: 1 addition & 1 deletion tests/gui/editors/test_utw_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
try:
from PyQt5.QtTest import QTest
from PyQt5.QtWidgets import QApplication
except ImportError:
except (ImportError, ModuleNotFoundError):
QTest, QApplication = None, None

if getattr(sys, "frozen", False) is False:
Expand Down

0 comments on commit 89e12ab

Please sign in to comment.