diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 02e7785b361d81b662da136fea46c0b633e11a4e..da6cc9a2c7af5ecc4a72e1018f85c4ee4a786a0a 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 0000000000000000000000000000000000000000..9c086d08ba208f8d8873eb145bf19e4e27f7afeb
--- /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")