mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-90765: configparser test: Catch deprecation warning (#91480)
This commit is contained in:
parent
0ed91a26fe
commit
56f9844014
1 changed files with 3 additions and 1 deletions
|
|
@ -1028,7 +1028,9 @@ class CustomConfigParser(configparser.ConfigParser):
|
|||
|
||||
class ConfigParserTestCaseLegacyInterpolation(ConfigParserTestCase):
|
||||
config_class = configparser.ConfigParser
|
||||
interpolation = configparser.LegacyInterpolation()
|
||||
with warnings.catch_warnings():
|
||||
warnings.simplefilter("ignore", DeprecationWarning)
|
||||
interpolation = configparser.LegacyInterpolation()
|
||||
|
||||
def test_set_malformatted_interpolation(self):
|
||||
cf = self.fromstring("[sect]\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue