8000 improved test warnings · mastering-python/code_2@a012f6c · GitHub
[go: up one dir, main page]

Skip to content

Commit a012f6c

Browse files
committed
improved test warnings
1 parent 441af8b commit a012f6c

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

conftest.py

+1-8
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,7 @@
4747
if sys.version_info < (3, 10):
4848
collect_ignore_paths.append(CH_03 / 'T_19_match_statement.rst')
4949
else:
50-
warnings.warn('Skipping Python 3.10+ tests')
51-
52-
if (3, 10, 0) > sys.version_info and sys.version_info < \
53-
(3, 10, 0, 'beta', 4):
54-
collect_ignore_paths.append(CH_04 / 'T_08_enum.rst')
55-
else:
56-
warnings.warn(
57-
'Skipping enum tests that are broken in Python 3.10 < b4')
50+
warnings.warn(f'Skipping Python 3.10+ tests on {sys.version}')
5851

5952
try:
6053
import numpy

0 commit comments

Comments
 (0)
0