summaryrefslogtreecommitdiff
path: root/setuptools/tests
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-01-21 14:20:36 +0100
committerMichał Górny <mgorny@gentoo.org>2023-01-21 14:20:36 +0100
commit23c7a01b32077b8438d3e5ebdd321729926a1272 (patch)
treea80dba4dc6edab8eac12054b9d46ae2a9153abc9 /setuptools/tests
parentcf350e761095f03f59bf1458bc2f7f5d7fe9ec5a (diff)
downloadpython-setuptools-git-23c7a01b32077b8438d3e5ebdd321729926a1272.tar.gz
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 https://github.com/pypa/setuptools/commit/506e7e7e1cac6a5d534184d35a20a73e9dd58045#r97577660
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/config/test_setupcfg.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/tests/config/test_setupcfg.py b/setuptools/tests/config/test_setupcfg.py
index d2964fda..f29dd398 100644
--- a/setuptools/tests/config/test_setupcfg.py
+++ b/setuptools/tests/config/test_setupcfg.py
@@ -746,12 +746,12 @@ class TestOptions:
"[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.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",
+ "[options]\ninstall_requires =\n bar\n python_version<3\n",
],
)
def test_nowarn_accidental_env_marker_misconfig(self, config, tmpdir, recwarn):