File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ def test_default_deprecation(self):
51
51
ct .config .defaults ['deprecated.config.oldmiss' ] = 'config.newmiss'
52
52
53
53
msgpattern = r'config\.oldkey.* has been renamed to .*config\.newkey'
54
+ msgmisspattern = r'config\.oldmiss.* has been renamed to .*config\.newmiss'
54
55
55
56
ct .config .defaults ['config.newkey' ] = 1
56
57
with pytest .warns (FutureWarning , match = msgpattern ):
@@ -77,7 +78,7 @@ def test_default_deprecation(self):
77
78
assert ct .config .defaults .get ('config.oldkey' ) == 6
78
79
79
80
with pytest .raises (KeyError ):
80
- with pytest .warns (FutureWarning , match = msgpattern ):
81
+ with pytest .warns (FutureWarning , match = msgmisspattern ):
81
82
ct .config .defaults ['config.oldmiss' ]
82
83
with pytest .raises (KeyError ):
83
84
ct .config .defaults ['config.neverdefined' ]
You can’t perform that action at this time.
0 commit comments