Skip to content

Commit 91bbeac

Browse files
committed
Skip tests which are expected to fail with Python 3.14
1 parent 43d3b04 commit 91bbeac

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

tests/test_inspect.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
4343
reason="rendered differently on py3.13",
4444
)
4545

46+
skip_py314 = pytest.mark.skipif(
47+
sys.version_info.minor == 14 and sys.version_info.major == 3,
48+
reason="rendered differently on py3.14",
49+
)
50+
4651
skip_pypy3 = pytest.mark.skipif(
4752
hasattr(sys, "pypy_version_info"),
4853
reason="rendered differently on pypy3",
@@ -139,6 +144,7 @@ def test_inspect_empty_dict():
139144
assert render({}).startswith(expected)
140145

141146

147+
@skip_py314
142148
@skip_py313
143149
@skip_py312
144150
@skip_py311
@@ -219,6 +225,7 @@ def test_inspect_integer_with_value():
219225
@skip_py311
220226
@skip_py312
221227
@skip_py313
228+
@skip_py314
222229
def test_inspect_integer_with_methods_python38_and_python39():
223230
expected = (
224231
"╭──────────────── <class 'int'> ─────────────────╮\n"
@@ -257,6 +264,7 @@ def test_inspect_integer_with_methods_python38_and_python39():
257264
@skip_py311
258265
@skip_py312
259266
@skip_py313
267+
@skip_py314
260268
def test_inspect_integer_with_methods_python310only():
261269
expected = (
262270
"╭──────────────── <class 'int'> ─────────────────╮\n"
@@ -299,6 +307,7 @@ def test_inspect_integer_with_methods_python310only():
299307
@skip_py310
300308
@skip_py312
301309
@skip_py313
310+
@skip_py314
302311
def test_inspect_integer_with_methods_python311():
303312
# to_bytes and from_bytes methods on int had minor signature change -
304313
# they now, as of 3.11, have default values for all of their parameters

tests/test_pretty.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
sys.version_info.minor == 13 and sys.version_info.major == 3,
3939
reason="rendered differently on py3.13",
4040
)
41+
skip_py314 = pytest.mark.skipif(
42+
sys.version_info.minor == 14 and sys.version_info.major == 3,
43+
reason="rendered differently on py3.14",
44+
)
4145

4246

4347
def test_install() -> None:
@@ -639,6 +643,7 @@ class Nada:
639643
@skip_py311
640644
@skip_py312
641645
@skip_py313
646+
@skip_py314
642647
def test_attrs_broken() -> None:
643648
@attr.define
644649
class Foo:

0 commit comments

Comments
 (0)