src/eric7/Testing/Interfaces/PytestRunner.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9549
67295777d9fe
child 9653
e67609152c5e
--- 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

eric ide

mercurial