Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration tests failing when encountering long_description_content_type #1858

Closed
jaraco opened this issue Oct 7, 2019 · 0 comments

Comments

@jaraco
Copy link
Member

commented Oct 7, 2019

In the past 30 days, the test_build_deps_on_distutils has started failing with this error:

___________________ test_build_deps_on_distutils[packaging] ____________________
request = <FixtureRequest for <Function test_build_deps_on_distutils[packaging]>>
tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7fb8dc67d710>, _basetemp=PosixPath('/tmp/pytest-of-travis/pytest-0')))
build_dep = 'packaging'
    @pytest.mark.parametrize("build_dep", build_deps)
    @pytest.mark.skipif(
        sys.version_info < (3, 6), reason='run only on late versions')
    def test_build_deps_on_distutils(request, tmpdir_factory, build_dep):
        """
        All setuptools build dependencies must build without
        setuptools.
        """
        if 'pyparsing' in build_dep:
            pytest.xfail(reason="Project imports setuptools unconditionally")
        build_target = tmpdir_factory.mktemp('source')
        build_dir = download_and_extract(request, build_dep, build_target)
        install_target = tmpdir_factory.mktemp('target')
        output = install(build_dir, install_target)
        for line in output.splitlines():
            match = re.search('Unknown distribution option: (.*)', line)
            allowed_unknowns = [
                'test_suite',
                'tests_require',
                'python_requires',
                'install_requires',
            ]
>           assert not match or match.group(1).strip('"\'') in allowed_unknowns
E           assert (not <re.Match object; span=(68, 128), match="Unknown distribution option: 'long_description_co> or 'long_description_content_type' in ['test_suite', 'tests_require', 'python_requires', 'install_requires'])
E            +  where 'long_description_content_type' = <built-in method strip of str object at 0x7fb8c6f94b20>('"\'')
E            +    where <built-in method strip of str object at 0x7fb8c6f94b20> = "'long_description_content_type'".strip
E            +      where "'long_description_content_type'" = <built-in method group of re.Match object at 0x7fb8d45890a8>(1)
E            +        where <built-in method group of re.Match object at 0x7fb8d45890a8> = <re.Match object; span=(68, 128), match="Unknown distribution option: 'long_description_co>.group
setuptools/tests/test_integration.py:147: AssertionError
@jaraco jaraco closed this in 53d662a Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.