Skip to content

Commit

Permalink
Add test capturing missed expectation. Ref #2773.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Sep 9, 2021
1 parent 7685e23 commit c020053
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions setuptools/tests/test_setopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,11 @@ def test_utf8_encoding_retained(self, tmpdir):
parser = self.parse_config(str(config))
assert parser.get('names', 'jaraco') == 'джарако'
assert parser.get('names', 'other') == 'yes'

def test_case_retained(self, tmpdir):
"""
"""
config = tmpdir.join('setup.cfg')
self.write_text(str(config), '[names]\nJARACO=jaraco')
setopt.edit_config(str(config), dict())
assert 'JARACO' in config.read_text(encoding='ascii')

0 comments on commit c020053

Please sign in to comment.