From d34581b83f75e12e2c021577aa2523eea8a9b590 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sun, 15 Aug 2021 18:47:16 -0400 Subject: [PATCH] test using python3.10 --- .github/workflows/main.yml | 3 +++ pytest.ini | 4 +++- tests/integration/test_main.py | 8 ++++++-- tests/unit/test_plugin_type_manager.py | 21 +++++++-------------- 4 files changed, 19 insertions(+), 17 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3e84b3c..a378c9b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,6 +27,9 @@ jobs: - os: ubuntu-latest python: 3.9 toxenv: py + - os: ubuntu-latest + python: '3.10.0-alpha - 3.10.999' + toxenv: py # windows - os: windows-latest python: 3.6 diff --git a/pytest.ini b/pytest.ini index a72e0e1..1978251 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,4 +1,6 @@ [pytest] norecursedirs = .git .* *.egg* old docs dist build addopts = -rw -filterwarnings = error +filterwarnings = + error + ignore:SelectableGroups:DeprecationWarning diff --git a/tests/integration/test_main.py b/tests/integration/test_main.py index 16ecba0..8ad7654 100644 --- a/tests/integration/test_main.py +++ b/tests/integration/test_main.py @@ -191,8 +191,10 @@ def test_tokenization_error_but_not_syntax_error(tmpdir, capsys): expected = "t.py:2:1: E999 SyntaxError: end of file (EOF) in multi-line statement\n" # noqa: E501 elif sys.version_info < (3, 8): # pragma: no cover (