1
0
mirror of https://github.com/fedora-python/tox-current-env.git synced 2025-01-11 08:56:14 +01:00

Tests: Don't assume tox sorts by lowercase

Partial fix for https://github.com/fedora-python/tox-current-env/issues/52
This commit is contained in:
Miro Hrončok 2022-12-08 11:48:14 +01:00
parent 22b05190f1
commit b3577b2733

View File

@ -518,7 +518,7 @@ def test_noquiet_installed_packages(flag):
# default tox produces output sorted by package names # default tox produces output sorted by package names
assert packages == sorted( assert packages == sorted(
packages, key=lambda p: p.partition("==")[0].partition(" @ ")[0].lower() packages, key=lambda p: p.partition("==")[0].partition(" @ ")[0]
) )
# without a flag, the output must match tox defaults # without a flag, the output must match tox defaults