summaryrefslogtreecommitdiff
path: root/setuptools/tests
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2022-11-13 13:47:00 -0500
committerJason R. Coombs <jaraco@jaraco.com>2022-11-13 14:05:46 -0500
commite577474fe9ad747232c5d9f99d941f13d6a8f50f (patch)
treeb1182ab9999d20fafba54e43bab9e1cf2736009e /setuptools/tests
parentc75928017022ac52464ed65e9fe3a553281372fc (diff)
downloadpython-setuptools-git-e577474fe9ad747232c5d9f99d941f13d6a8f50f.tar.gz
⚫ Fade to black.
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/test_sdist.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/setuptools/tests/test_sdist.py b/setuptools/tests/test_sdist.py
index 4b0d2e17..5193066e 100644
--- a/setuptools/tests/test_sdist.py
+++ b/setuptools/tests/test_sdist.py
@@ -28,11 +28,14 @@ SETUP_ATTRS = {
'data_files': [("data", [os.path.join("d", "e.dat")])],
}
-SETUP_PY = """\
+SETUP_PY = (
+ """\
from setuptools import setup
setup(**%r)
-""" % SETUP_ATTRS
+"""
+ % SETUP_ATTRS
+)
@contextlib.contextmanager
@@ -451,8 +454,7 @@ class TestSdistTest:
@classmethod
def make_strings(cls, item):
if isinstance(item, dict):
- return {
- key: cls.make_strings(value) for key, value in item.items()}
+ return {key: cls.make_strings(value) for key, value in item.items()}
if isinstance(item, list):
return list(map(cls.make_strings, item))
return str(item)
@@ -570,9 +572,11 @@ def test_default_revctrl():
This interface must be maintained until Ubuntu 12.04 is no longer
supported (by Setuptools).
"""
- ep, = metadata.EntryPoints._from_text("""
+ (ep,) = metadata.EntryPoints._from_text(
+ """
[setuptools.file_finders]
svn_cvs = setuptools.command.sdist:_default_revctrl
- """)
+ """
+ )
res = ep.load()
assert hasattr(res, '__iter__')