aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2019-04-05 10:49:23 -0400
committerJason R. Coombs <jaraco@jaraco.com>2019-04-05 10:49:23 -0400
commitb336e83a63722b3a3e4d3f1779686149d5cef8d1 (patch)
tree6b9f4aa8b0699a5ac23d138100d58b3090b673f3
parent7b09ba64c0327ecea04cc95057ffa7d5c8d939c8 (diff)
downloadexternal_python_setuptools-b336e83a63722b3a3e4d3f1779686149d5cef8d1.tar.gz
external_python_setuptools-b336e83a63722b3a3e4d3f1779686149d5cef8d1.tar.bz2
external_python_setuptools-b336e83a63722b3a3e4d3f1779686149d5cef8d1.zip
Add compatibility for Python 2
-rw-r--r--setuptools/tests/test_setopt.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/tests/test_setopt.py b/setuptools/tests/test_setopt.py
index 2241ef73..7c803500 100644
--- a/setuptools/tests/test_setopt.py
+++ b/setuptools/tests/test_setopt.py
@@ -29,8 +29,8 @@ class TestEdit:
UTF-8 should be retained.
"""
config = tmpdir.join('setup.cfg')
- self.write_text(config, '[names]\njaraco=йарацо')
+ self.write_text(str(config), '[names]\njaraco=йарацо')
setopt.edit_config(str(config), dict(names=dict(other='yes')))
parser = self.parse_config(str(config))
- assert parser['names']['jaraco'] == 'йарацо'
- assert parser['names']['other'] == 'yes'
+ assert parser.get('names', 'jaraco') == 'йарацо'
+ assert parser.get('names', 'other') == 'yes'