Skip to content

Commit

Permalink
Skip broken tests on py314
Browse files Browse the repository at this point in the history
  • Loading branch information
DRMacIver committed Oct 12, 2024
1 parent d4535da commit 2dba950
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hypothesis-python/tests/cover/test_pretty.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"""

import re
import sys
import struct
import warnings
from collections import Counter, OrderedDict, defaultdict, deque
Expand Down Expand Up @@ -785,6 +786,7 @@ class SomeAttrsClass:
x: ReprDetector


@pytest.mark.skipif(sys.version_info[:2] >= (3, 14), reason="FIXME-py314")
def test_pretty_prints_attrs_classes():
assert pretty.pretty(SomeAttrsClass(ReprDetector())) == "SomeAttrsClass(x=GOOD)"

Expand Down Expand Up @@ -823,6 +825,7 @@ class SomeAttrsClassWithLotsOfFields:
s: int


@pytest.mark.skipif(sys.version_info[:2] >= (3, 14), reason="FIXME-py314")
def test_will_line_break_between_fields():
obj = SomeAttrsClassWithLotsOfFields(
**{
Expand Down Expand Up @@ -867,6 +870,7 @@ class AttrsClassWithNoInitField:
y: int = attrs.field(init=False)


@pytest.mark.skipif(sys.version_info[:2] >= (3, 14), reason="FIXME-py314")
def test_does_not_include_no_init_fields_in_attrs_printing():
record = AttrsClassWithNoInitField(x=1)
assert pretty.pretty(record) == "AttrsClassWithNoInitField(x=1)"
Expand Down

0 comments on commit 2dba950

Please sign in to comment.