Skip to content

Commit b336e83

Browse files
committed
Add compatibility for Python 2
1 parent 7b09ba6 commit b336e83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setuptools/tests/test_setopt.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def test_utf8_encoding_retained(self, tmpdir):
2929
UTF-8 should be retained.
3030
"""
3131
config = tmpdir.join('setup.cfg')
32-
self.write_text(config, '[names]\njaraco=йарацо')
32+
self.write_text(str(config), '[names]\njaraco=йарацо')
3333
setopt.edit_config(str(config), dict(names=dict(other='yes')))
3434
parser = self.parse_config(str(config))
35-
assert parser['names']['jaraco'] == 'йарацо'
36-
assert parser['names']['other'] == 'yes'
35+
assert parser.get('names', 'jaraco') == 'йарацо'
36+
assert parser.get('names', 'other') == 'yes'

0 commit comments

Comments
 (0)