diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2020-05-15 05:15:42 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-05-15 05:15:42 -0400 |
| commit | f6f25adfc81df76e186bf6c3738a1baa0f92be05 (patch) | |
| tree | a8e7e2ce4d23fede846ef62860d2c66698e6e9f0 /setuptools | |
| parent | c48365a763ea41d3f9e6298b3becbe73045ff9a1 (diff) | |
| download | external_python_setuptools-f6f25adfc81df76e186bf6c3738a1baa0f92be05.tar.gz external_python_setuptools-f6f25adfc81df76e186bf6c3738a1baa0f92be05.tar.bz2 external_python_setuptools-f6f25adfc81df76e186bf6c3738a1baa0f92be05.zip | |
Just write
Diffstat (limited to 'setuptools')
| -rw-r--r-- | setuptools/tests/test_packageindex.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/setuptools/tests/test_packageindex.py b/setuptools/tests/test_packageindex.py index 45296897..c6016c09 100644 --- a/setuptools/tests/test_packageindex.py +++ b/setuptools/tests/test_packageindex.py @@ -287,13 +287,12 @@ class TestPyPIConfig: def test_percent_in_password(self, tmpdir, monkeypatch): monkeypatch.setitem(os.environ, 'HOME', str(tmpdir)) pypirc = tmpdir / '.pypirc' - with pypirc.open('w') as strm: - strm.write(DALS(""" - [pypi] - repository=https://pypi.org - username=jaraco - password=pity% - """)) + pypirc.write(DALS(""" + [pypi] + repository=https://pypi.org + username=jaraco + password=pity% + """)) cfg = setuptools.package_index.PyPIConfig() cred = cfg.creds_by_repository['https://pypi.org'] assert cred.username == 'jaraco' |
