Skip to content

Commit 3c8c0d2

Browse files
authored
Merge pull request #9461 from hugovk/main
2 parents 325744e + 61417b2 commit 3c8c0d2

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

testing/python/approx.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import operator
2-
import sys
32
from contextlib import contextmanager
43
from decimal import Decimal
54
from fractions import Fraction
@@ -810,7 +809,6 @@ def test_nonnumeric_false_if_unequal(self, x):
810809
assert 1.0 != approx([None])
811810
assert None != approx([1.0]) # noqa: E711
812811

813-
@pytest.mark.skipif(sys.version_info < (3, 7), reason="requires ordered dicts")
814812
def test_nonnumeric_dict_repr(self):
815813
"""Dicts with non-numerics and infinites have no tolerances"""
816814
x1 = {"foo": 1.0000005, "bar": None, "foobar": inf}

testing/test_assertion.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,6 @@ def test_mojibake(self) -> None:
796796

797797

798798
class TestAssert_reprcompare_dataclass:
799-
@pytest.mark.skipif(sys.version_info < (3, 7), reason="Dataclasses in Python3.7+")
800799
def test_dataclasses(self, pytester: Pytester) -> None:
801800
p = pytester.copy_example("dataclasses/test_compare_dataclasses.py")
802801
result = pytester.runpytest(p)
@@ -815,7 +814,6 @@ def test_dataclasses(self, pytester: Pytester) -> None:
815814
consecutive=True,
816815
)
817816

818-
@pytest.mark.skipif(sys.version_info < (3, 7), reason="Dataclasses in Python3.7+")
819817
def test_recursive_dataclasses(self, pytester: Pytester) -> None:
820818
p = pytester.copy_example("dataclasses/test_compare_recursive_dataclasses.py")
821819
result = pytester.runpytest(p)
@@ -834,7 +832,6 @@ def test_recursive_dataclasses(self, pytester: Pytester) -> None:
834832
consecutive=True,
835833
)
836834

837-
@pytest.mark.skipif(sys.version_info < (3, 7), reason="Dataclasses in Python3.7+")
838835
def test_recursive_dataclasses_verbose(self, pytester: Pytester) -> None:
839836
p = pytester.copy_example("dataclasses/test_compare_recursive_dataclasses.py")
840837
result = pytester.runpytest(p, "-vv")
@@ -867,7 +864,6 @@ def test_recursive_dataclasses_verbose(self, pytester: Pytester) -> None:
867864
consecutive=True,
868865
)
869866

870-
@pytest.mark.skipif(sys.version_info < (3, 7), reason="Dataclasses in Python3.7+")
871867
def test_dataclasses_verbose(self, pytester: Pytester) -> None:
872868
p = pytester.copy_example("dataclasses/test_compare_dataclasses_verbose.py")
873869
result = pytester.runpytest(p, "-vv")
@@ -881,7 +877,6 @@ def test_dataclasses_verbose(self, pytester: Pytester) -> None:
881877
]
882878
)
883879

884-
@pytest.mark.skipif(sys.version_info < (3, 7), reason="Dataclasses in Python3.7+")
885880
def test_dataclasses_with_attribute_comparison_off(
886881
self, pytester: Pytester
887882
) -> None:
@@ -891,15 +886,13 @@ def test_dataclasses_with_attribute_comparison_off(
891886
result = pytester.runpytest(p, "-vv")
892887
result.assert_outcomes(failed=0, passed=1)
893888

894-
@pytest.mark.skipif(sys.version_info < (3, 7), reason="Dataclasses in Python3.7+")
895889
def test_comparing_two_different_data_classes(self, pytester: Pytester) -> None:
896890
p = pytester.copy_example(
897891
"dataclasses/test_compare_two_different_dataclasses.py"
898892
)
899893
result = pytester.runpytest(p, "-vv")
900894
result.assert_outcomes(failed=0, passed=1)
901895

902-
@pytest.mark.skipif(sys.version_info < (3, 7), reason="Dataclasses in Python3.7+")
903896
def test_data_classes_with_custom_eq(self, pytester: Pytester) -> None:
904897
p = pytester.copy_example(
905898
"dataclasses/test_compare_dataclasses_with_custom_eq.py"

0 commit comments

Comments
 (0)