micropython/tests/misc
Damien George 2ac1364688 py/objset: Check that RHS of a binary op is a set/frozenset.
CPython docs explicitly state that the RHS of a set/frozenset binary op
must be a set to prevent user errors.  It also preserves commutativity of
the ops, eg: "abc" & set() is a TypeError, and so should be set() & "abc".

This change actually decreases unix (x64) code by 160 bytes; it increases
stm32 by 4 bytes and esp8266 by 28 bytes (but previous patch already
introduced a much large saving).
2017-10-03 17:56:27 +11:00
..
features.py tests: Adapt misc/features.py tests for ports without floating point. 2015-06-24 17:53:29 +01:00
non_compliant.py py/objset: Check that RHS of a binary op is a set/frozenset. 2017-10-03 17:56:27 +11:00
non_compliant.py.exp py/objset: Check that RHS of a binary op is a set/frozenset. 2017-10-03 17:56:27 +11:00
non_compliant_lexer.py py/lexer: Raise NotImplError for unicode name escape, instead of assert. 2015-09-07 17:08:49 +01:00
non_compliant_lexer.py.exp py/lexer: Raise NotImplError for unicode name escape, instead of assert. 2015-09-07 17:08:49 +01:00
print_exception.py tests: Convert remaining "sys.exit()" to "raise SystemExit". 2017-06-10 20:34:38 +03:00
recursion.py tests: Add test for catching infinite function recursion. 2014-06-27 00:03:56 +03:00
recursive_data.py tests: Convert remaining "sys.exit()" to "raise SystemExit". 2017-06-10 20:34:38 +03:00
recursive_data.py.exp tests: Activate recursive_data.py test, now that io.StringIO is available. 2014-12-12 00:58:07 +02:00
recursive_iternext.py tests: Convert remaining "sys.exit()" to "raise SystemExit". 2017-06-10 20:34:38 +03:00
recursive_iternext.py.exp tests: Add test for recursive iternext stack overflow. 2015-06-03 22:41:06 +01:00
rge_sm.py tests: Enable misc tests on pyboard; output 4 sig figs in rge_sm. 2014-09-06 18:38:55 +01:00
sys_exc_info.py tests: Convert remaining "sys.exit()" to "raise SystemExit". 2017-06-10 20:34:38 +03:00