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

micropython / micropython / 13910
98%

Build:
DEFAULT BRANCH: master
Ran 01 Jul 2020 01:38AM UTC
Jobs 1
Files 274
Run time 39s
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
13910

push

travis-ci-com

dpgeorge
py: Rework mp_convert_member_lookup to properly handle built-ins.

This commit fixes lookups of class members to make it so that built-in
functions that are used as methods/functions of a class work correctly.

The mp_convert_member_lookup() function is pretty much completely changed
by this commit, but for the most part it's just reorganised and the
indenting changed.  The functional changes are:

- staticmethod and classmethod checks moved to later in the if-logic,
  because they are less common and so should be checked after the more
  common cases.

- The explicit mp_obj_is_type(member, &mp_type_type) check is removed
  because it's now subsumed by other, more general tests in this function.

- MP_TYPE_FLAG_BINDS_SELF and MP_TYPE_FLAG_BUILTIN_FUN type flags added to
  make the checks in this function much simpler (now they just test this
  bit in type->flags).

- An extra check is made for mp_obj_is_instance_type(type) to fix lookup of
  built-in functions.

Fixes #1326 and #6198.

Signed-off-by: Damien George <damien@micropython.org>

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

19456 of 19849 relevant lines covered (98.02%)

427764.22 hits per line

Jobs
ID Job ID Ran Files Coverage
5 13910.5 (MAKEOPTS="-j4") 01 Jul 2020 01:38AM UTC 0
98.02
Travis Job 13910.5
Source Files on build 13910
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #13910
  • 332d8334 on github
  • Prev Build on master (#13901)
  • Next Build on master (#13918)
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