aboutsummaryrefslogtreecommitdiff
path: root/tests/basics/containment.py
AgeCommit message (Collapse)Author
2020-09-25tests/run-tests: Use -BS flags when running CPython.Damien George
The use of -S ensures that only the CPython standard library is accessible, which makes tests run the same regardless of any site-packages that are installed. It also improves start-up time of CPython, reducing the overall time spent running the test suite. tests/basics/containment.py is updated to work around issue with old Python versions not being able to str-format a dict-keys object, which becomes apparent when -S is used. Signed-off-by: Damien George <damien@micropython.org>
2017-08-09py/objstr: Raise an exception for wrong type on RHS of str binary op.Damien George
The main case to catch is invalid types for the containment operator, of the form str.__contains__(non-str).
2017-02-14tests/comprehension1, containment: Split set tests to separate files.Paul Sokolovsky
To make skippable.
2014-09-23py: Make native emitter handle multi-compare and not/is not/not in ops.Damien George
2014-01-19Move tests in basic/tests/ up one level preparating to multiple test dirs.Paul Sokolovsky