Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941686 - dev-python/setuptools-74.1.3 fails test: test_nowarn_accidental_env_marker_misconfig
Summary: dev-python/setuptools-74.1.3 fails test: test_nowarn_accidental_env_marker_mi...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-17 08:28 UTC by Dustin Polke
Modified: 2024-10-17 14:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,22.60 KB, text/plain)
2024-10-17 08:28 UTC, Dustin Polke
Details
Full build.log (build.log,468.86 KB, text/plain)
2024-10-17 08:29 UTC, Dustin Polke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dustin Polke 2024-10-17 08:28:32 UTC
Created attachment 906157 [details]
emerge --info

============================================================================================================ FAILURES =============================================================================================================
__________________________________________________________ TestOptions.test_nowarn_accidental_env_marker_misconfig[[options]\ninstall_requires = bar;baz\nboo = xxx;yyy] __________________________________________________________
[gw4] linux -- Python 3.12.6 /var/tmp/portage/dev-python/setuptools-74.1.3/work/setuptools-74.1.3-python3_12/install/usr/bin/python3.12

self = <setuptools.tests.config.test_setupcfg.TestOptions object at 0x7f5c91291580>, config = '[options]\ninstall_requires = bar;baz\nboo = xxx;yyy'
tmpdir = local('/var/tmp/portage/dev-python/setuptools-74.1.3/temp/pytest-of-portage/pytest-0/popen-gw4/test_nowarn_accidental_env_mar0'), recwarn = WarningsRecorder(record=True)

    @pytest.mark.parametrize(
        "config",
        [
            "[options.extras_require]\nfoo =\n    bar;python_version<'3'",
            "[options.extras_require]\nfoo = bar;baz\nboo = xxx;yyy",
            "[options.extras_require]\nfoo =\n    bar;python_version<'3'\n",
            "[options.extras_require]\nfoo = bar;baz\nboo = xxx;yyy\n",
            "[options.extras_require]\nfoo =\n    bar\n    python_version<3\n",
            "[options]\ninstall_requires =\n    bar;python_version<'3'",
            "[options]\ninstall_requires = bar;baz\nboo = xxx;yyy",
            "[options]\ninstall_requires =\n    bar;python_version<'3'\n",
            "[options]\ninstall_requires = bar;baz\nboo = xxx;yyy\n",
            "[options]\ninstall_requires =\n    bar\n    python_version<3\n",
        ],
    )
    @pytest.mark.filterwarnings("error::setuptools.SetuptoolsDeprecationWarning")
    def test_nowarn_accidental_env_marker_misconfig(self, config, tmpdir, recwarn):
        fake_env(tmpdir, config)
        num_warnings = len(recwarn)
        with get_dist(tmpdir) as _:
            pass
        # The examples are valid, no warnings shown
>       assert len(recwarn) == num_warnings
E       assert 1 == 0
E        +  where 1 = len(WarningsRecorder(record=True))

_          = <setuptools.dist.Distribution object at 0x7f5c90d0f590>
config     = '[options]\ninstall_requires = bar;baz\nboo = xxx;yyy'
num_warnings = 0
recwarn    = WarningsRecorder(record=True)
self       = <setuptools.tests.config.test_setupcfg.TestOptions object at 0x7f5c91291580>
tmpdir     = local('/var/tmp/portage/dev-python/setuptools-74.1.3/temp/pytest-of-portage/pytest-0/popen-gw4/test_nowarn_accidental_env_mar0')

setuptools/tests/config/test_setupcfg.py:744: AssertionError


# emerge -pqv '=dev-python/setuptools-74.1.3::gentoo'
[ebuild     U ] dev-python/setuptools-74.1.3 [72.1.0] USE="test" PYTHON_TARGETS="python3_12 (-pypy3) -python3_10 -python3_11 (-python3_13) (-python3_13t)"
Comment 1 Dustin Polke 2024-10-17 08:29:11 UTC
Created attachment 906158 [details]
Full build.log