From cb3d999e4788dad3edf053387b6064adf8b08e19 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Mon, 21 Nov 2022 14:20:57 -0600 Subject: [PATCH] Use pytest collect_ignore to avoid SyntaxError in test on Py<3.10 (closes gh-121) --- .github/workflows/ci.yml | 2 -- test/conftest.py | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 test/conftest.py diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02e7785..da6cc9a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,8 +71,6 @@ jobs: # https://github.com/inducer/pymbolic/pull/66#issuecomment-950371315 pip install symengine || true - python3 -c 'import sys, os; sys.exit(not sys.version_info < (3, 10))' && rm test/test_pattern_match.py - test_py_project docs: diff --git a/test/conftest.py b/test/conftest.py new file mode 100644 index 0000000..9c086d0 --- /dev/null +++ b/test/conftest.py @@ -0,0 +1,5 @@ +import sys + +collect_ignore = [] +if sys.version_info < (3, 10): + collect_ignore.append("test_pattern_match.py") -- GitLab