src/eric7/Testing/Interfaces/PytestRunner.py

branch
eric7-maintenance
changeset 9549
67295777d9fe
parent 9442
906485dcd210
parent 9482
a2bc06a54d9d
child 9654
7328efba128b
--- a/src/eric7/Testing/Interfaces/PytestRunner.py	Mon Oct 31 14:07:57 2022 +0100
+++ b/src/eric7/Testing/Interfaces/PytestRunner.py	Wed Nov 30 09:19:51 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
@@ -356,6 +360,7 @@
 
     elif command == "runtest":
         import pytest
+
         from eric7.EricNetwork.EricJsonStreamWriter import EricJsonWriter
 
         writer = EricJsonWriter(sys.argv[2], int(sys.argv[3]))

eric ide

mercurial