diff --git a/tests/gui/editors/test_bwm_editor.py b/tests/gui/editors/test_bwm_editor.py index e7d2efdc7..8e925a90e 100644 --- a/tests/gui/editors/test_bwm_editor.py +++ b/tests/gui/editors/test_bwm_editor.py @@ -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: diff --git a/tests/gui/editors/test_dlg_editor.py b/tests/gui/editors/test_dlg_editor.py index 34b642b28..ece6112bf 100644 --- a/tests/gui/editors/test_dlg_editor.py +++ b/tests/gui/editors/test_dlg_editor.py @@ -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: diff --git a/tests/gui/editors/test_erf_editor.py b/tests/gui/editors/test_erf_editor.py index 7147af140..cdcb5fbb8 100644 --- a/tests/gui/editors/test_erf_editor.py +++ b/tests/gui/editors/test_erf_editor.py @@ -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: diff --git a/tests/gui/editors/test_gff_editor.py b/tests/gui/editors/test_gff_editor.py index 0a4428f19..8aa18f13f 100644 --- a/tests/gui/editors/test_gff_editor.py +++ b/tests/gui/editors/test_gff_editor.py @@ -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: diff --git a/tests/gui/editors/test_git_editor.py b/tests/gui/editors/test_git_editor.py index 948441582..5af42c092 100644 --- a/tests/gui/editors/test_git_editor.py +++ b/tests/gui/editors/test_git_editor.py @@ -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: diff --git a/tests/gui/editors/test_jrl_editor.py b/tests/gui/editors/test_jrl_editor.py index 884d5abee..cfc528b51 100644 --- a/tests/gui/editors/test_jrl_editor.py +++ b/tests/gui/editors/test_jrl_editor.py @@ -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: diff --git a/tests/gui/editors/test_nss_editor.py b/tests/gui/editors/test_nss_editor.py index a22b175b8..aaa451cb7 100644 --- a/tests/gui/editors/test_nss_editor.py +++ b/tests/gui/editors/test_nss_editor.py @@ -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: diff --git a/tests/gui/editors/test_ssf_editor.py b/tests/gui/editors/test_ssf_editor.py index 4520d9524..1eb2de812 100644 --- a/tests/gui/editors/test_ssf_editor.py +++ b/tests/gui/editors/test_ssf_editor.py @@ -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: diff --git a/tests/gui/editors/test_tlk_editor.py b/tests/gui/editors/test_tlk_editor.py index 78420d5dd..3398c0a44 100644 --- a/tests/gui/editors/test_tlk_editor.py +++ b/tests/gui/editors/test_tlk_editor.py @@ -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: diff --git a/tests/gui/editors/test_tpc_editor.py b/tests/gui/editors/test_tpc_editor.py index c01f70fa3..22e5eb397 100644 --- a/tests/gui/editors/test_tpc_editor.py +++ b/tests/gui/editors/test_tpc_editor.py @@ -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: diff --git a/tests/gui/editors/test_twoda_editor.py b/tests/gui/editors/test_twoda_editor.py index 02f75a19a..dd38e6d6c 100644 --- a/tests/gui/editors/test_twoda_editor.py +++ b/tests/gui/editors/test_twoda_editor.py @@ -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: diff --git a/tests/gui/editors/test_txt_editor.py b/tests/gui/editors/test_txt_editor.py index fd6552b29..3b7013029 100644 --- a/tests/gui/editors/test_txt_editor.py +++ b/tests/gui/editors/test_txt_editor.py @@ -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: diff --git a/tests/gui/editors/test_utc_editor.py b/tests/gui/editors/test_utc_editor.py index 9cc50e0c8..3db2e318c 100644 --- a/tests/gui/editors/test_utc_editor.py +++ b/tests/gui/editors/test_utc_editor.py @@ -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: diff --git a/tests/gui/editors/test_utd_editor.py b/tests/gui/editors/test_utd_editor.py index e81426293..10cc1a9c8 100644 --- a/tests/gui/editors/test_utd_editor.py +++ b/tests/gui/editors/test_utd_editor.py @@ -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: diff --git a/tests/gui/editors/test_ute_editor.py b/tests/gui/editors/test_ute_editor.py index f7d92bc96..eab8cf992 100644 --- a/tests/gui/editors/test_ute_editor.py +++ b/tests/gui/editors/test_ute_editor.py @@ -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: diff --git a/tests/gui/editors/test_uti_editor.py b/tests/gui/editors/test_uti_editor.py index e040e2b03..cc8865b2e 100644 --- a/tests/gui/editors/test_uti_editor.py +++ b/tests/gui/editors/test_uti_editor.py @@ -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: diff --git a/tests/gui/editors/test_utm_editor.py b/tests/gui/editors/test_utm_editor.py index 6f40ac999..7843b93d7 100644 --- a/tests/gui/editors/test_utm_editor.py +++ b/tests/gui/editors/test_utm_editor.py @@ -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: diff --git a/tests/gui/editors/test_utp_editor.py b/tests/gui/editors/test_utp_editor.py index b48dbfc50..806ace496 100644 --- a/tests/gui/editors/test_utp_editor.py +++ b/tests/gui/editors/test_utp_editor.py @@ -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: diff --git a/tests/gui/editors/test_uts_editor.py b/tests/gui/editors/test_uts_editor.py index 38219658b..a40b151d2 100644 --- a/tests/gui/editors/test_uts_editor.py +++ b/tests/gui/editors/test_uts_editor.py @@ -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: diff --git a/tests/gui/editors/test_utw_editor.py b/tests/gui/editors/test_utw_editor.py index ecd6c4eec..901b828f3 100644 --- a/tests/gui/editors/test_utw_editor.py +++ b/tests/gui/editors/test_utw_editor.py @@ -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: