File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 22
22
23
23
24
24
class TestWarnDeprecatedPython :
25
- def test_happy_version (self ):
25
+ def test_happy_version (self , recwarn ):
26
26
with mock .patch .object (sys , "version_info" ) as v_info :
27
27
v_info .major = 3
28
28
v_info .minor = 8
29
- with pytest .warns (None ) as record :
30
- _warn_deprecated_python ()
31
- assert len (record ) == 0
29
+ _warn_deprecated_python ()
30
+ assert len (recwarn ) == 0
32
31
33
32
def test_below_warn (self ):
34
33
with mock .patch .object (sys , "version_info" ) as v_info :
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ MarkupSafe==2.1.2
16
16
mock==4.0.3
17
17
moto==3.0.2
18
18
packaging==23.0
19
- pluggy==1.0 .0
19
+ pluggy==1.5 .0
20
20
py==1.11.0
21
21
pycparser==2.21
22
- pytest==7 .2.1
22
+ pytest==8 .2.0
23
23
pytest-cov==3.0.0
24
24
pytest-forked==1.6.0
25
25
pytest-mock==3.10.0
You can’t perform that action at this time.
0 commit comments