summaryrefslogtreecommitdiff
path: root/tests/basics/class_notimpl.py
AgeCommit message (Collapse)Author
2019-12-27py/objsingleton: Use mp_generic_unary_op for singleton objects.Damien George
So these types more closely match NoneType, eg they can be hashed, like in CPython.
2019-10-29tests/basics: Use str.format instead of % for formatting messages.Damien George
Only use % formatting when testing % itself, because only str.format is guaranteed to be available on any port.
2017-08-30py/objtype: Handle NotImplemented return from binary special methods.Paul Sokolovsky
NotImplemented means "try other fallbacks (like calling __rop__ instead of __op__) and if nothing works, raise TypeError". As MicroPython doesn't implement any fallbacks, signal to raise TypeError right away.