Overview

Request 853092 accepted

- Use (fixed in the meantime) pytest_arch macro in order to ignore
the _build directories from multiple python3 flavors
gh#openSUSE/python-rpm-macros#66


Hans-Peter Jansen's avatar

This fails for 15.2 now:

[ 36s] + echo python3 [ 36s] + PYTHONPATH=:/home/abuild/rpmbuild/BUILDROOT/python-typed-ast-1.4.1-0.x86_64/usr/lib64/python3.6/site-packages [ 36s] + PYTHONDONTWRITEBYTECODE=1 [ 36s] + py.test-3.6 --ignore=build.python2 --ignore=_build.python3 --ignore=_build.pypy3 -v -k 'not test_ignores and not test_convert_strs' [ 37s] ============================= test session starts ============================== [ 37s] platform linux -- Python 3.6.12, pytest-3.10.1, py-1.8.1, pluggy-0.13.1 -- /usr/bin/python3 [ 37s] cachedir: .pytest_cache [ 37s] rootdir: /home/abuild/rpmbuild/BUILD/typed_ast-1.4.1, inifile: [ 37s] collecting ... collected 0 items / 1 errors [ 37s] [ 37s] ==================================== ERRORS ==================================== [ 37s] _________________ ERROR collecting ast3/tests/test_basics.py __________________ [ 37s] ImportError while importing test module '/home/abuild/rpmbuild/BUILD/typed_ast-1.4.1/ast3/tests/test_basics.py'. [ 37s] Hint: make sure your test modules/packages have valid Python names. [ 37s] Traceback: [ 37s] ast3/tests/test_basics.py:5: in <module> [ 37s] from typed_ast import _ast3 [ 37s] E ImportError: cannot import name '_ast3' [ 37s] !!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!! [ 37s] =========================== 1 error in 0.29 seconds ============================ [ 37s] error: Bad exit status from /var/tmp/rpm-tmp.EIOBW6 (%check) [ 37s]


Hans-Peter Jansen's avatar

The stray : looks strange:

PYTHONPATH=:/home/abuild/rpmbuild/BUILDROOT/python-typed-ast-1.4.1-0.x86_64/usr/lib64/python3.6/site-packages


Benjamin Greiner's avatar

It does not fail in d:l:p openSUSE_Leap_15.2

Is your python-rpm-macros outdated? Because exactly that failure is referenced as gh#openSUSE/python-rpm-macros#43 and fixed in the meantime by gh#openSUSE/python-rpm-macros#45 (python-rpm-macros-20200623.3ea9b62)


Hans-Peter Jansen's avatar

Thanks, you hit the nail. Fixed.

Request History
Benjamin Greiner's avatar

bnavigator created request

- Use (fixed in the meantime) pytest_arch macro in order to ignore
the _build directories from multiple python3 flavors
gh#openSUSE/python-rpm-macros#66


Matej Cepl's avatar

mcepl accepted request

Of course, thank you.

openSUSE Build Service is sponsored by