summaryrefslogtreecommitdiffstats
path: root/library/python/pytest/plugins/conftests.py
diff options
context:
space:
mode:
authorshadchin <[email protected]>2022-02-10 16:44:39 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:44:39 +0300
commite9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (patch)
tree64175d5cadab313b3e7039ebaa06c5bc3295e274 /library/python/pytest/plugins/conftests.py
parent2598ef1d0aee359b4b6d5fdd1758916d5907d04f (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/python/pytest/plugins/conftests.py')
-rw-r--r--library/python/pytest/plugins/conftests.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/library/python/pytest/plugins/conftests.py b/library/python/pytest/plugins/conftests.py
index 01c4ae3b420..522041f5a7c 100644
--- a/library/python/pytest/plugins/conftests.py
+++ b/library/python/pytest/plugins/conftests.py
@@ -1,10 +1,10 @@
-import os
+import os
import importlib
import sys
import inspect
-
-from pytest import hookimpl
-
+
+from pytest import hookimpl
+
from .fixtures import metrics, links # noqa
orig_getfile = inspect.getfile
@@ -21,8 +21,8 @@ inspect.getfile = getfile
conftest_modules = []
-@hookimpl(trylast=True)
-def pytest_load_initial_conftests(early_config, parser, args):
+@hookimpl(trylast=True)
+def pytest_load_initial_conftests(early_config, parser, args):
conftests = filter(lambda name: name.endswith(".conftest"), sys.extra_modules)
def conftest_key(name):
@@ -33,11 +33,11 @@ def pytest_load_initial_conftests(early_config, parser, args):
for name in sorted(conftests, key=conftest_key):
mod = importlib.import_module(name)
- if os.getenv("CONFTEST_LOAD_POLICY") != "LOCAL":
- mod.__orig_file__ = mod.__file__
- mod.__file__ = ""
+ if os.getenv("CONFTEST_LOAD_POLICY") != "LOCAL":
+ mod.__orig_file__ = mod.__file__
+ mod.__file__ = ""
conftest_modules.append(mod)
- early_config.pluginmanager.consider_conftest(mod)
+ early_config.pluginmanager.consider_conftest(mod)
def getconftestmodules(*args, **kwargs):