From e4b5d72e0b5139397c093547c486852d7da2c4e4 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 11 May 2024 20:16:37 -0400 Subject: [PATCH 1/2] Update pytest version in upstream-requirements-py311.txt This resolves a deprecation warning --- test/upstream-requirements-py311.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/upstream-requirements-py311.txt b/test/upstream-requirements-py311.txt index dce81673..a0e9cbf7 100644 --- a/test/upstream-requirements-py311.txt +++ b/test/upstream-requirements-py311.txt @@ -16,10 +16,10 @@ MarkupSafe==2.1.2 mock==4.0.3 moto==3.0.2 packaging==23.0 -pluggy==1.0.0 +pluggy==1.5.0 py==1.11.0 pycparser==2.21 -pytest==7.2.1 +pytest==8.2.0 pytest-cov==3.0.0 pytest-forked==1.6.0 pytest-mock==3.10.0 From 62db9227aa9b389fc8d139b6739fdb4a354b6f3d Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sun, 12 May 2024 22:58:06 -0400 Subject: [PATCH 2/2] Update test_compatability.py --- test/unit/test_compatability.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/unit/test_compatability.py b/test/unit/test_compatability.py index 51510952..314017e9 100644 --- a/test/unit/test_compatability.py +++ b/test/unit/test_compatability.py @@ -22,13 +22,12 @@ class TestWarnDeprecatedPython: - def test_happy_version(self): + def test_happy_version(self, recwarn): with mock.patch.object(sys, "version_info") as v_info: v_info.major = 3 v_info.minor = 8 - with pytest.warns(None) as record: - _warn_deprecated_python() - assert len(record) == 0 + _warn_deprecated_python() + assert len(recwarn) == 0 def test_below_warn(self): with mock.patch.object(sys, "version_info") as v_info: