From 31bedae511c7044ae487d5a5e37019d867ae0441 Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Fri, 10 Feb 2023 09:30:46 +0100 Subject: [PATCH] Skip second round of tests with Python 3.7 --- noxfile.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/noxfile.py b/noxfile.py index eecc0e6d..860b98ef 100644 --- a/noxfile.py +++ b/noxfile.py @@ -46,6 +46,16 @@ def tests(session: nox.Session) -> None: *session.posargs, env={"COVERAGE_FILE": f".coverage.{session.python}"}, ) + + if session.python == "3.7": + # There is nothing more to test with Python 3.7. + # Because there is a dependency conflict between + # argcomplete and the latest tox (both depend on + # a different version of importlib-metadata for Py 3.7) + # pip installs tox 3 as the latest one for Py 3.7. + session.notify("cover") + return + # Test tox_to_nox with older tox session.install("tox<4") session.run(