Skip to content

Commit 23c7a01

Browse files
committed
Fix version syntax in test_nowarn_accidental_env_marker_misconfig
Fix the two "marker"-alike cases (for package `python_version`) for test_nowarn_accidental_env_marker_misconfig to use `<3` rather than `<'3'`. The latter maps to the version `'3'` which is not a valid version and therefore causes an error with packaging-22.0+. See the discussion at 506e7e7#r97577660
1 parent cf350e7 commit 23c7a01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setuptools/tests/config/test_setupcfg.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -746,12 +746,12 @@ def test_warn_accidental_env_marker_misconfig(self, config, tmpdir):
746746
"[options.extras_require]\nfoo = bar;baz\nboo = xxx;yyy",
747747
"[options.extras_require]\nfoo =\n bar;python_version<'3'\n",
748748
"[options.extras_require]\nfoo = bar;baz\nboo = xxx;yyy\n",
749-
"[options.extras_require]\nfoo =\n bar\n python_version<'3'\n",
749+
"[options.extras_require]\nfoo =\n bar\n python_version<3\n",
750750
"[options]\ninstall_requires =\n bar;python_version<'3'",
751751
"[options]\ninstall_requires = bar;baz\nboo = xxx;yyy",
752752
"[options]\ninstall_requires =\n bar;python_version<'3'\n",
753753
"[options]\ninstall_requires = bar;baz\nboo = xxx;yyy\n",
754-
"[options]\ninstall_requires =\n bar\n python_version<'3'\n",
754+
"[options]\ninstall_requires =\n bar\n python_version<3\n",
755755
],
756756
)
757757
def test_nowarn_accidental_env_marker_misconfig(self, config, tmpdir, recwarn):

0 commit comments

Comments
 (0)