@@ -339,7 +339,8 @@ def test_pipreqcheck_virtualenv_packages(host, pip_path, expected_packages):
actual_packages = sorted(packages.stdout.lower().strip().split("\n"))
# This is a dummy distro-provided package ignored by the
# pip-tools. pkg-resources on Buster, pkg_resources on Bullseye.
# pip-tools. pkg-resources for Python 2.7, pkg_resources for
# Python 3.
if "pkg-resources==0.0.0" in actual_packages:
actual_packages.remove("pkg-resources==0.0.0")
if "pkg_resources==0.0.0" in actual_packages: