--- a/src/eric7/Testing/Interfaces/PytestRunner.py Sun Nov 06 11:22:39 2022 +0100 +++ b/src/eric7/Testing/Interfaces/PytestRunner.py Mon Nov 07 17:19:58 2022 +0100 @@ -13,7 +13,11 @@ import sys import time -sys.path.insert(2, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))) +sys.path.insert( + 2, + os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "..")), +) +# three times up is our installation directory with contextlib.suppress(ImportError): import pytest @@ -301,7 +305,7 @@ plugins. """ try: - import pytest + import pytest # __IGNORE_WARNING_I10__ versions = { "name": "pytest", @@ -326,7 +330,7 @@ Function to determine the defined markers and their descriptions. """ try: - import pytest + import pytest # __IGNORE_WARNING_I10__ # --capture=sys needed on Windows to avoid # ValueError: saved filedescriptor not valid anymore