From 6bc297f480f28bc8da13dad8d25a74fb471ed200 Mon Sep 17 00:00:00 2001 From: johndoknjas Date: Thu, 3 Oct 2024 04:07:16 -0700 Subject: [PATCH] Only run pytype for python < 3.13. --- tests/test_pytype.py | 5 +++++ tox.ini | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_pytype.py b/tests/test_pytype.py index 5ac86a78..727bf74b 100644 --- a/tests/test_pytype.py +++ b/tests/test_pytype.py @@ -1,6 +1,11 @@ import subprocess +import sys +import pytest +@pytest.mark.skipif( + sys.version_info >= (3, 13), reason="Need python < 3.13 for pytype" +) def test_pytype(): result = subprocess.run( ["pytype", "vulture/core.py", "--disable=attribute-error"], diff --git a/tox.ini b/tox.ini index 9318ed13..357c410b 100644 --- a/tox.ini +++ b/tox.ini @@ -15,7 +15,7 @@ deps = pint # Use latest version to catch API changes. pytest pytest-cov - pytype + pytype ; python_version < '3.13' commands = pytest {posargs} # Install package as wheel in all envs (https://hynek.me/articles/turbo-charge-tox/).