You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ta...@apache.org on 2024/03/28 20:27:53 UTC
(airflow) 01/01: [Experiment] Use `importlib` import mode for `pytest`
This is an automated email from the ASF dual-hosted git repository.
taragolis pushed a commit to branch pytest-import-mode-importlib
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 586451344a8603f10439bf136406f78348212896
Author: Andrey Anshin <An...@taragol.is>
AuthorDate: Fri Mar 29 00:19:07 2024 +0400
[Experiment] Use `importlib` import mode for `pytest`
---
pyproject.toml | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/pyproject.toml b/pyproject.toml
index f4803ae800..839b162e41 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -443,7 +443,14 @@ fixture-parentheses = false
# * Disable `flaky` plugin for pytest. This plugin conflicts with `rerunfailures` because provide same marker.
# * Disable `nose` builtin plugin for pytest. This feature deprecated in 7.2 and will be removed in pytest>=8
# * And we focus on use native pytest capabilities rather than adopt another frameworks.
-addopts = "-rasl --verbosity=2 -p no:flaky -p no:nose --asyncio-mode=strict"
+addopts = [
+ "-rasl",
+ "--verbosity=2",
+ "-p", "no:flaky",
+ "-p", "no:nose",
+ "--asyncio-mode=strict",
+ "--import-mode=importlib",
+]
norecursedirs = [
".eggs",
"airflow",