forked from pool/python-black
- Skip python 2 tests unconditionally.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-black?expand=0&rev=26
This commit is contained in:
@@ -93,11 +93,7 @@ cp $(ls %{buildroot}%{_bindir}/black-* | head -1) ~/bin/black
|
||||
export PATH=$PATH:~/bin
|
||||
|
||||
# test_expression_diff - sometimes fails on async timing in OBS
|
||||
skiptests="test_expression_diff"
|
||||
# https://github.com/psf/black/issues/1109
|
||||
if [ $(python3 -c 'import sys; print(sys.byteorder)') == 'big' ]; then
|
||||
skiptests+=" or test_python2"
|
||||
fi
|
||||
skiptests="test_expression_diff or py2"
|
||||
%pytest -k "not ($skiptests)"
|
||||
|
||||
%post
|
||||
|
||||
Reference in New Issue
Block a user