From b1479ec10f57242663c59e24a584535ca0fd6596 Mon Sep 17 00:00:00 2001 From: Hiroshi Miura Date: Fri, 3 Nov 2023 12:09:00 +0900 Subject: [PATCH] chore(test): introduce debug extras - bump pytest-remotedata@0.4.1 - move pytest-leaks as debug extra - set extras with debug for py39d,mprof,fil debug/profile configuration of tox Signed-off-by: Hiroshi Miura --- pyproject.toml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 624b42e7..337e03df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,10 +49,9 @@ aqt = "aqt.__main__:main" test = [ "pytest>=6.0", "pytest-pep8", - "pytest-remotedata<0.4.0", "pytest-cov", + "pytest-remotedata>=0.4.1", "pytest-socket", - "pytest-leaks", "pytest-timeout", "pympler", ] @@ -75,6 +74,9 @@ docs = [ "sphinx_rtd_theme>=1.3", "sphinx-py3doc-enhanced-theme>=2.4", ] +debug = [ + "pytest-leaks", +] [project.urls] Documentation = "https://aqtinstall.readthedocs.io/" @@ -211,18 +213,13 @@ commands = [testenv:py39d] basepython = python3.9d -extras = test +extras = test, debug commands = python3.9-dbg -m pytest -v --no-cov -R : -k "test_install" -deps = - pytest - pytest-leaks - pytest-remotedata<0.4.0 - pytest-socket - pytest-cov [testenv:mprof] basepython = python3.9 +extras = debug commands = mprof run --multiprocess python -m aqt install-qt -O /tmp -d /tmp linux desktop 6.2.1 mprof plot --output memory-profile.png @@ -232,6 +229,7 @@ deps = [testenv:fil] basepython = python3.9 +extras = debug commands = fil-profile run -m aqt install-qt -O /tmp -d /tmp linux desktop 6.2.1 deps =