You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-rich/SOURCES/Skip-failing-tests-with-Pyt...

41 lines
1006 B

From 0cbaf2feaedf133fe39f11a75a1f83d0079fa8ef Mon Sep 17 00:00:00 2001
From: Karolina Surma <ksurma@redhat.com>
Date: Fri, 31 May 2024 09:11:20 +0200
Subject: [PATCH] Skip failing tests with Python 3.13
---
tests/test_pretty.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/test_pretty.py b/tests/test_pretty.py
index 40fae2d..bf6e74d 100644
--- a/tests/test_pretty.py
+++ b/tests/test_pretty.py
@@ -171,6 +171,7 @@ class Empty:
pass
+@skip_py313
def test_pretty_dataclass():
dc = ExampleDataclass(1000, "Hello, World", 999, ["foo", "bar", "baz"])
result = pretty_repr(dc, max_width=80)
@@ -344,6 +345,7 @@ def test_reference_cycle_namedtuple():
assert res == "Example(x=1, y=[Example(x=2, y=None), Example(x=2, y=None)])"
+@skip_py313
def test_reference_cycle_dataclass():
@dataclass
class Example:
@@ -475,6 +477,7 @@ def test_max_depth_attrs():
)
+@skip_py313
def test_max_depth_dataclass():
@dataclass
class Foo:
--
2.44.0