Gpiozero: Test fails using Python 3.7 on Debian Sid

Created on 19 Sep 2018  Â·  2Comments  Â·  Source: gpiozero/gpiozero

Using Python 3.6.6+ on Debian Sid, on GPIOZero e8bf5b500f9f2ea55d06869a86749b9c91691f68 having run "make develop", running py.test passes but delivers a number of deprecation warnings. For example:

…/Python_GPIOZero/tests/test_tools.py:173: DeprecationWarning: generator 'smoothed' raised StopIteration
  assert list(smoothed((), 5)) == []

On running with Python 3.7.0+ on Debian Sid, these warning become errors, StopIteration is raised

bug

All 2 comments

This appears to be related to PEP 479 https://www.python.org/dev/peps/pep-0479/

Fixed in #670

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pcs3rd picture pcs3rd  Â·  6Comments

m-reiter picture m-reiter  Â·  3Comments

bennuttall picture bennuttall  Â·  9Comments

mi-skam picture mi-skam  Â·  4Comments

bootsmann picture bootsmann  Â·  8Comments