From 8d3d26b6b9b6c021c25ef8157db7e84f2daf166d Mon Sep 17 00:00:00 2001 From: q0w <43147888+q0w@users.noreply.github.com> Date: Thu, 12 Jan 2023 05:33:55 +0300 Subject: Allow package names with env markers with pip binary options (#2853) Fixes https://github.com/tox-dev/tox/issues/2814#issuecomment-1374804987 --- tests/tox_env/python/pip/req/test_file.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/tox_env/python') diff --git a/tests/tox_env/python/pip/req/test_file.py b/tests/tox_env/python/pip/req/test_file.py index d947510c..e387a8ac 100644 --- a/tests/tox_env/python/pip/req/test_file.py +++ b/tests/tox_env/python/pip/req/test_file.py @@ -177,6 +177,13 @@ _REQ_FILE_TEST_CASES = [ ["--no-binary", {"foo"}], id="no-binary-none-first", ), + pytest.param( + "--only-binary foo; sys_platform == 'aix'", + {"only_binary": {"foo;"}}, + [], + ["--only-binary", {"foo;"}], + id="only-binary-and-env-marker", + ), pytest.param("####### example-requirements.txt #######", {}, [], [], id="comment"), pytest.param("\t##### Requirements without Version Specifiers ######", {}, [], [], id="tab and comment"), pytest.param(" # start", {}, [], [], id="space and comment"), -- cgit v1.2.1