Source: hy
Version: 0.19.0-1
Severity: important
User: [email protected]
Usertags: pytest-v6

Hi,

hy 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 pybuild:284: cp /<<PKGBUILDDIR>>/README.md 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_hy/build/
> I: pybuild base:232: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_hy/build; 
> python3.9 -m pytest -k '-test_bin -test_hy2py'
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.9.1, pytest-6.0.2, py-1.9.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg
> collected 607 items
> 
> ============================ no tests ran in 4.21s 
> =============================
> ERROR: Wrong expression passed to '-k': not test_bin -test_hy2py: at column 
> 14: expected end of input; got identifier
> 
> E: pybuild pybuild:353: test: plugin distutils failed with: exit code=4: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_hy/build; python3.9 -m pytest -k 
> '-test_bin -test_hy2py'
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 
> returned exit code 13
> make: *** [debian/rules:22: build] Error 25
> dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

Reply via email to