Skip to content

Commit

Permalink
⚫ Fade to black.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Nov 13, 2022
1 parent c759280 commit a200702
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions setuptools/tests/test_sdist.py
Expand Up @@ -6,6 +6,7 @@
import unicodedata
import contextlib
import io
import logging
from unittest import mock

import pytest
Expand All @@ -28,11 +29,14 @@
'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
Expand Down Expand Up @@ -451,8 +455,7 @@ def test_sdist_with_utf8_encoded_filename(self):
@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)
Expand Down Expand Up @@ -570,9 +573,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__')

0 comments on commit a200702

Please sign in to comment.