[Debian-med-packaging] Bug#976779: Python3.9 issue: '"yield from" can't be applied to "Condition"' (Was: Bug#976779: mypy FTBFS with only python 3.9)

Andreas Tille tille at debian.org
Tue Dec 8 12:27:57 GMT 2020


Control: tags -1 pending
Control: tags -1 help

On Mon, Dec 07, 2020 at 11:24:34PM +0200, Adrian Bunk wrote:
> ...
> #set -e; for v in 3.9; do
> set -e; for v in 3.8; do \
> 	PATH=$PATH:/<<PKGBUILDDIR>>/debian/mypy/usr/bin/ python$v -m pytest -n auto \
> 	-o testpaths=mypy/test -o python_files=test*.py \
> 	-k "not StubtestMiscUnit" \
> 	-o python_classes= -o python_functions=; \
> done
> bash: line 2: python3.8: command not found

I've dealt with this issue in Git.  Unfortunately there is a test suite
error remaining:


set -e; for v in 3.9; do \
        PATH=$PATH:/build/mypy-0.790/debian/mypy/usr/bin/ python$v -m pytest -n auto \
        -o testpaths=mypy/test -o python_files=test*.py \
        -k "not StubtestMiscUnit" \
        -o python_classes= -o python_functions=; \
done
============================= test session starts ==============================
platform linux -- Python 3.9.1rc1, pytest-4.6.11, py-1.9.0, pluggy-0.13.0
rootdir: /build/mypy-0.790, inifile: pytest.ini, testpaths: mypy/test
plugins: cov-2.8.1, forked-1.3.0, xdist-1.32.0
gw0 I / gw1 I / gw2 I / gw3 I
gw0 [266] / gw1 [266] / gw2 [266] / gw3 [266]

...................................s..................................... [ 27%]
...................................................F.................... [ 54%]
....................................................s....sss............ [ 81%]
...............s...............................s.                        [100%]
=================================== FAILURES ===================================
__________________________ SamplesSuite.test_samples ___________________________
[gw3] linux -- Python 3.9.1 /usr/bin/python3.9
Sample check failed
----------------------------- Captured stdout call -----------------------------
test-data/samples/crawl.py:750: error: "yield from" can't be applied to "Condition"
test-data/samples/crawl.py:772: error: "yield from" can't be applied to "Semaphore"
test-data/samples/crawl.py:778: error: "yield from" can't be applied to "Condition"
Found 3 errors in 1 file (checked 1 source file)
=============== 1 failed, 258 passed, 7 skipped in 81.97 seconds ===============

Any hint would be welcome

     Andreas.


-- 
http://fam-tille.de



More information about the Debian-med-packaging mailing list