glue fails tests with Python 3.7
When rebuilding lscsoft-glue (1.16.0-3) after the python 3.7 transition in Debian Buster, I get the following:
I: pybuild pybuild:295: env PYTHONPATH=/build/lscsoft-glue-1.60.0/.pybuild/cpython3_3.7/build PYTHONDONTWRITEBYTECODE=1 make -C /build/lscsoft-glue-1.60.0/test PYTHON=python3.7 -o lal_verify -o ligolw_sqlite_test -o ligolw_test01 -o ligolw_test03a -o lig
make[1]: Entering directory '/build/lscsoft-glue-1.60.0/test'
=== start glue_ligolw_ilwd_verify ===>
python3.7 glue_ligolw_ilwd_verify.py && <------>{ echo "Pass" ; true ; } || { echo "Fail" ; false ; }
Pass
<=== end glue_ligolw_ilwd_verify ===
=== start iterutils_verify ===>
python3.7 iterutils_verify.py && <----->{ echo "Pass" ; true ; } || { echo "Fail" ; false ; }
**********************************************************************
File "/build/lscsoft-glue-1.60.0/.pybuild/cpython3_3.7/build/glue/iterutils.py", line 264, in glue.iterutils.inorder
Failed example:
list(inorder(x, y, z))
Exception raised:
Traceback (most recent call last):
File "/build/lscsoft-glue-1.60.0/.pybuild/cpython3_3.7/build/glue/iterutils.py", line 327, in inorder
yield next_()
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.7/doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest glue.iterutils.inorder[3]>", line 1, in <module>
list(inorder(x, y, z))
RuntimeError: generator raised StopIteration
**********************************************************************
File "/build/lscsoft-glue-1.60.0/.pybuild/cpython3_3.7/build/glue/iterutils.py", line 266, in glue.iterutils.inorder
Failed example:
list(inorder(x, y, z, key=lambda x: x * x))
Exception raised:
Traceback (most recent call last):
File "/build/lscsoft-glue-1.60.0/.pybuild/cpython3_3.7/build/glue/iterutils.py", line 327, in inorder
yield next_()
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.7/doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest glue.iterutils.inorder[4]>", line 1, in <module>
list(inorder(x, y, z, key=lambda x: x * x))
RuntimeError: generator raised StopIteration
**********************************************************************
File "/build/lscsoft-glue-1.60.0/.pybuild/cpython3_3.7/build/glue/iterutils.py", line 272, in glue.iterutils.inorder
Failed example:
list(inorder(x, y, z, key=lambda x: abs(x - 3)))
Exception raised:
Traceback (most recent call last):
File "/build/lscsoft-glue-1.60.0/.pybuild/cpython3_3.7/build/glue/iterutils.py", line 327, in inorder
yield next_()
StopIteration
The above exception was the direct cause of the following exception:
etc.
Any idea how to fix this, without affecting Stretch (which uses 3.5)?