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):
5151 ct .config .defaults ['deprecated.config.oldmiss' ] = 'config.newmiss'
5252
5353 msgpattern = r'config\.oldkey.* has been renamed to .*config\.newkey'
54+ msgmisspattern = r'config\.oldmiss.* has been renamed to .*config\.newmiss'
5455
5556 ct .config .defaults ['config.newkey' ] = 1
5657 with pytest .warns (FutureWarning , match = msgpattern ):
@@ -77,7 +78,7 @@ def test_default_deprecation(self):
7778 assert ct .config .defaults .get ('config.oldkey' ) == 6
7879
7980 with pytest .raises (KeyError ):
80- with pytest .warns (FutureWarning , match = msgpattern ):
81+ with pytest .warns (FutureWarning , match = msgmisspattern ):
8182 ct .config .defaults ['config.oldmiss' ]
8283 with pytest .raises (KeyError ):
8384 ct .config .defaults ['config.neverdefined' ]
You can’t perform that action at this time.
0 commit comments