diff options
author | q0w <43147888+q0w@users.noreply.github.com> | 2023-01-12 05:33:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-11 18:33:55 -0800 |
commit | 8d3d26b6b9b6c021c25ef8157db7e84f2daf166d (patch) | |
tree | a5592f27537e5390d260712eaa51c3a7afa3ee80 /tests | |
parent | b8e47ce061b3da43d195e17f1782ee8a012e6f55 (diff) | |
download | tox-git-8d3d26b6b9b6c021c25ef8157db7e84f2daf166d.tar.gz |
Allow package names with env markers with pip binary options (#2853)
Fixes https://github.com/tox-dev/tox/issues/2814#issuecomment-1374804987
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tox_env/python/pip/req/test_file.py | 7 |
1 files changed, 7 insertions, 0 deletions
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"), |