diff --git a/setuptools/tests/test_build_meta.py b/setuptools/tests/test_build_meta.py index ce58ef28a9..095593f960 100644 --- a/setuptools/tests/test_build_meta.py +++ b/setuptools/tests/test_build_meta.py @@ -429,13 +429,17 @@ def test_build_with_pyproject_config(self, tmpdir, setup_script): "foo-0.1.dist-info/RECORD", } assert license == "---- placeholder MIT license ----" + + metadata = metadata.replace("(", "").replace(")", "") + # ^-- compatibility hack for pypa/wheel#552 + for line in ( "Summary: This is a Python package", "License: MIT", "Classifier: Intended Audience :: Developers", "Requires-Dist: appdirs", - "Requires-Dist: tomli (>=1) ; extra == 'all'", - "Requires-Dist: importlib ; (python_version == \"2.6\") and extra == 'all'", + "Requires-Dist: tomli >=1 ; extra == 'all'", + "Requires-Dist: importlib ; python_version == \"2.6\" and extra == 'all'", ): assert line in metadata