summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/plugin/plugin_base.py
diff options
context:
space:
mode:
authorFederico Caselli <cfederico87@gmail.com>2022-08-30 13:13:59 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2022-08-30 13:13:59 +0000
commit6da8d32fb1a5e706401bf0f11bb638ff94bd1bf4 (patch)
treec8d9ce319339479563ddbd8001f77a456397f6da /lib/sqlalchemy/testing/plugin/plugin_base.py
parent6988f25c0b9bb313e4daa26e738a96ef0d555f61 (diff)
parent7b67920fcbc5007f4177b030728a986b8fcc8d81 (diff)
downloadsqlalchemy-6da8d32fb1a5e706401bf0f11bb638ff94bd1bf4.tar.gz
Merge "Use cibuildwheel to create wheels" into main
Diffstat (limited to 'lib/sqlalchemy/testing/plugin/plugin_base.py')
-rw-r--r--lib/sqlalchemy/testing/plugin/plugin_base.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/sqlalchemy/testing/plugin/plugin_base.py b/lib/sqlalchemy/testing/plugin/plugin_base.py
index 8e5113954..494e7d5ab 100644
--- a/lib/sqlalchemy/testing/plugin/plugin_base.py
+++ b/lib/sqlalchemy/testing/plugin/plugin_base.py
@@ -136,6 +136,13 @@ def setup_options(make_option):
"mark expression",
)
make_option(
+ "--nomypy",
+ action="callback",
+ zeroarg_callback=_set_tag_exclude("mypy"),
+ help="Don't run mypy typing tests; "
+ "this is now equivalent to the pytest -m 'not mypy' mark expression",
+ )
+ make_option(
"--profile-sort",
type=str,
default="cumulative",
@@ -260,10 +267,12 @@ def restore_important_follower_config(dict_):
"""
-def read_config():
+def read_config(root_path):
global file_config
file_config = configparser.ConfigParser()
- file_config.read(["setup.cfg", "test.cfg"])
+ file_config.read(
+ [str(root_path / "setup.cfg"), str(root_path / "test.cfg")]
+ )
def pre_begin(opt):