Source: mitmproxy
Version: 5.3.0-1
Severity: important
User: [email protected]
Usertags: pytest-v6
Hi,
mitmproxy FTBFS with pytest 6 in experimental because it uses removed
feature. The -k option no longer allows a minus "-" as negation, only
"not". See
https://docs.pytest.org/en/stable/changelog.html#id60
The error log below has more details.
> I: pybuild base:232: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_mitmproxy/build; python3.9 -m pytest
> "-k-TestHARDump -k-TestScripts -k-test_mitmweb -k-test_mitmdump
> -k-TestDaemonSSL -k-test_tcp -k-TestHTTPS -k-TestMasterSecretLogger
> -k-test_get_version"
> ERROR: Wrong expression passed to '-k': not TestHARDump -k-TestScripts
> -k-test_mitmweb -k-test_mitmdump -k-TestDaemonSSL -k-test_tcp -k-TestHTTPS
> -k-TestMasterSecretLogger -k-test_get_version: at column 17: expected end of
> input; got identifier
>
> [1m============================= test session starts
> ==============================[0m
> platform linux -- Python 3.9.1, pytest-6.0.2, py-1.9.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg
> plugins: hypothesis-5.41.2, asyncio-0.14.0, timeout-1.4.1, cov-2.8.1
> collected 1483 items
>
> [33m============================ [33mno tests ran[0m[33m in
> 3.71s[0m[33m =============================[0m
> E: pybuild pybuild:353: test: plugin distutils failed with: exit code=4: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_mitmproxy/build; python3.9 -m pytest
> "-k-TestHARDump -k-TestScripts -k-test_mitmweb -k-test_mitmdump
> -k-TestDaemonSSL -k-test_tcp -k-TestHTTPS -k-TestMasterSecretLogger
> -k-test_get_version"
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9
> returned exit code 13
> make: *** [debian/rules:9: build] Error 25
> dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2