Skip to content

Commit 4f0abac

Browse files
committed
test: use conftest.py to skip PEP563 tests for python 3.6
1 parent f7f6996 commit 4f0abac

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

conftest.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# see https://docs.pytest.org/en/latest/example/pythoncollection.html#customizing-test-collection
2+
import sys
3+
4+
collect_ignore = ["setup.py"]
5+
6+
if sys.version_info[:2] == (3, 6):
7+
# skip these tests for python 3.6 because it does not support PEP 563
8+
collect_ignore.append("tests/test_lazy_type_evaluation.py")

0 commit comments

Comments
 (0)