File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 2
2
import urllib .request
3
3
import urllib .error
4
4
import http .client
5
+ from inspect import cleandoc
5
6
from unittest import mock
6
7
7
8
import pytest
8
9
9
10
import setuptools .package_index
10
- from .textwrap import DALS
11
11
12
12
13
13
class TestPackageIndex :
@@ -257,14 +257,15 @@ class TestPyPIConfig:
257
257
def test_percent_in_password (self , tmp_home_dir ):
258
258
pypirc = tmp_home_dir / '.pypirc'
259
259
pypirc .write_text (
260
- DALS (
260
+ cleandoc (
261
261
"""
262
- [pypi]
263
- repository=https://pypi.org
264
- username=jaraco
265
- password=pity%
266
- """
267
- )
262
+ [pypi]
263
+ repository=https://pypi.org
264
+ username=jaraco
265
+ password=pity%
266
+ """
267
+ ),
268
+ encoding = "utf-8" ,
268
269
)
269
270
cfg = setuptools .package_index .PyPIConfig ()
270
271
cred = cfg .creds_by_repository ['https://pypi.org' ]
You can’t perform that action at this time.
0 commit comments