• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

micropython / micropython / 14043
98%

Build:
DEFAULT BRANCH: master
Ran 24 Jul 2020 03:14PM UTC
Jobs 1
Files 274
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
14043

push

travis-ci-com

dpgeorge
py/compile: Don't await __aiter__ special method in async-for.

MicroPython's original implementation of __aiter__ was correct for an
earlier (provisional) version of PEP492 (CPython 3.5), where __aiter__ was
an async-def function.  But that changed in the final version of PEP492 (in
CPython 3.5.2) where the function was changed to a normal one.  See
https://www.python.org/dev/peps/pep-0492/#why-aiter-does-not-return-an-awaitable
See also the note at the end of this subsection in the docs:
https://docs.python.org/3.5/reference/datamodel.html#asynchronous-iterators
And for completeness the BPO: https://bugs.python.org/issue27243

To be consistent with the Python spec as it stands today (and now that
PEP492 is final) this commit changes MicroPython's behaviour to match
CPython:  __aiter__ should return an async-iterable object, but is not
itself awaitable.

The relevant tests are updated to match.

See #6267.

2 of 2 new or added lines in 1 file covered. (100.0%)

19478 of 19872 relevant lines covered (98.02%)

429248.13 hits per line

Jobs
ID Job ID Ran Files Coverage
5 14043.5 (MAKEOPTS="-j4") 24 Jul 2020 03:14PM UTC 0
98.02
Travis Job 14043.5
Source Files on build 14043
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #14043
  • 37e1b5c8 on github
  • Prev Build on master (#14042)
  • Next Build on master (#14047)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc