diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2021-09-08 21:13:11 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2021-09-08 21:15:40 -0400 |
| commit | c020053fa6a3e3abf2686ad8b6eb95efa8794c9f (patch) | |
| tree | a5267f8758ab76dc3d4db766de0b814d853d978c | |
| parent | 7685e2393c9f44bcff13d62361f2355595d856ba (diff) | |
| download | python-setuptools-git-c020053fa6a3e3abf2686ad8b6eb95efa8794c9f.tar.gz | |
Add test capturing missed expectation. Ref #2773.
| -rw-r--r-- | setuptools/tests/test_setopt.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/setuptools/tests/test_setopt.py b/setuptools/tests/test_setopt.py index 0163f9af..61dc68b6 100644 --- a/setuptools/tests/test_setopt.py +++ b/setuptools/tests/test_setopt.py @@ -28,3 +28,11 @@ class TestEdit: 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') |
