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: 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