mirror of
https://github.com/python/cpython.git
synced 2024-11-24 02:15:30 +08:00
gh-90765: configparser test: Catch deprecation warning (#91480)
This commit is contained in:
parent
0ed91a26fe
commit
56f9844014
@ -1028,7 +1028,9 @@ class ConfigParserTestCaseNoInterpolation(BasicTestCase, unittest.TestCase):
|
||||
|
||||
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…
Reference in New Issue
Block a user