summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_configparser.py
diff options
context:
space:
mode:
authorChris Bradbury <chris@binaryspanner.com>2018-04-23 19:16:17 (GMT)
committerƁukasz Langa <lukasz@langa.pl>2018-04-23 19:16:17 (GMT)
commit1d4a733cceee237f0850b7887c2945dee707da27 (patch)
tree7669a141d360b6a19d2d51ecf202701468614cc9 /Lib/test/test_configparser.py
parent25038ecfb665bef641abf8cb61afff7505b0e008 (diff)
downloadcpython-1d4a733cceee237f0850b7887c2945dee707da27.zip
cpython-1d4a733cceee237f0850b7887c2945dee707da27.tar.gz
cpython-1d4a733cceee237f0850b7887c2945dee707da27.tar.bz2
bpo-33251: Prevent ConfigParser.items returning items present in vars. (#6446)
* bpo-33251: ConfigParser.items no longer returns items present in vars. Documentation for `ConfigParser.items()` states: 'Items present in vars no longer appear in the result.' This fix aligns behaviour to that specified in the documentation.
Diffstat (limited to 'Lib/test/test_configparser.py')
-rw-r--r--Lib/test/test_configparser.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_configparser.py b/Lib/test/test_configparser.py
index 4d07203..87b811f 100644
--- a/Lib/test/test_configparser.py
+++ b/Lib/test/test_configparser.py
@@ -915,8 +915,7 @@ class ConfigParserTestCase(BasicTestCase, unittest.TestCase):
self.check_items_config([('default', '<default>'),
('getdefault', '|<default>|'),
('key', '|value|'),
- ('name', 'value'),
- ('value', 'value')])
+ ('name', 'value')])
def test_safe_interpolation(self):
# See http://www.python.org/sf/511737
@@ -1093,8 +1092,7 @@ class RawConfigParserTestCase(BasicTestCase, unittest.TestCase):
self.check_items_config([('default', '<default>'),
('getdefault', '|%(default)s|'),
('key', '|%(name)s|'),
- ('name', '%(value)s'),
- ('value', 'value')])
+ ('name', '%(value)s')])
def test_set_nonstring_types(self):
cf = self.newconfig()