14
0
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:
2022-01-12 03:44:13 +00:00
committed by Git OBS Bridge
parent 4483c08ff4
commit 40c9ee755b
2 changed files with 3 additions and 6 deletions

View File

@@ -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