From 61417b2551a81c02b7e853b1d8d5c7ba11bd9bf1 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Thu, 30 Dec 2021 12:37:18 +0200 Subject: [PATCH] Drop support for EOL Python 3.6 --- testing/python/approx.py | 2 -- testing/test_assertion.py | 7 ------- 2 files changed, 9 deletions(-) diff --git a/testing/python/approx.py b/testing/python/approx.py index 0d411d8a6..f417a5992 100644 --- a/testing/python/approx.py +++ b/testing/python/approx.py @@ -1,5 +1,4 @@ import operator -import sys from contextlib import contextmanager from decimal import Decimal from fractions import Fraction @@ -810,7 +809,6 @@ class TestApprox: assert 1.0 != approx([None]) assert None != approx([1.0]) # noqa: E711 - @pytest.mark.skipif(sys.version_info < (3, 7), reason="requires ordered dicts") def test_nonnumeric_dict_repr(self): """Dicts with non-numerics and infinites have no tolerances""" x1 = {"foo": 1.0000005, "bar": None, "foobar": inf} diff --git a/testing/test_assertion.py b/testing/test_assertion.py index 8a4525cb7..317a2beb3 100644 --- a/testing/test_assertion.py +++ b/testing/test_assertion.py @@ -796,7 +796,6 @@ class TestAssert_reprcompare: class TestAssert_reprcompare_dataclass: - @pytest.mark.skipif(sys.version_info < (3, 7), reason="Dataclasses in Python3.7+") def test_dataclasses(self, pytester: Pytester) -> None: p = pytester.copy_example("dataclasses/test_compare_dataclasses.py") result = pytester.runpytest(p) @@ -815,7 +814,6 @@ class TestAssert_reprcompare_dataclass: consecutive=True, ) - @pytest.mark.skipif(sys.version_info < (3, 7), reason="Dataclasses in Python3.7+") def test_recursive_dataclasses(self, pytester: Pytester) -> None: p = pytester.copy_example("dataclasses/test_compare_recursive_dataclasses.py") result = pytester.runpytest(p) @@ -834,7 +832,6 @@ class TestAssert_reprcompare_dataclass: consecutive=True, ) - @pytest.mark.skipif(sys.version_info < (3, 7), reason="Dataclasses in Python3.7+") def test_recursive_dataclasses_verbose(self, pytester: Pytester) -> None: p = pytester.copy_example("dataclasses/test_compare_recursive_dataclasses.py") result = pytester.runpytest(p, "-vv") @@ -867,7 +864,6 @@ class TestAssert_reprcompare_dataclass: consecutive=True, ) - @pytest.mark.skipif(sys.version_info < (3, 7), reason="Dataclasses in Python3.7+") def test_dataclasses_verbose(self, pytester: Pytester) -> None: p = pytester.copy_example("dataclasses/test_compare_dataclasses_verbose.py") result = pytester.runpytest(p, "-vv") @@ -881,7 +877,6 @@ class TestAssert_reprcompare_dataclass: ] ) - @pytest.mark.skipif(sys.version_info < (3, 7), reason="Dataclasses in Python3.7+") def test_dataclasses_with_attribute_comparison_off( self, pytester: Pytester ) -> None: @@ -891,7 +886,6 @@ class TestAssert_reprcompare_dataclass: result = pytester.runpytest(p, "-vv") result.assert_outcomes(failed=0, passed=1) - @pytest.mark.skipif(sys.version_info < (3, 7), reason="Dataclasses in Python3.7+") def test_comparing_two_different_data_classes(self, pytester: Pytester) -> None: p = pytester.copy_example( "dataclasses/test_compare_two_different_dataclasses.py" @@ -899,7 +893,6 @@ class TestAssert_reprcompare_dataclass: result = pytester.runpytest(p, "-vv") result.assert_outcomes(failed=0, passed=1) - @pytest.mark.skipif(sys.version_info < (3, 7), reason="Dataclasses in Python3.7+") def test_data_classes_with_custom_eq(self, pytester: Pytester) -> None: p = pytester.copy_example( "dataclasses/test_compare_dataclasses_with_custom_eq.py"