summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/class_contains.py
Commit message (Collapse)AuthorAge
* py/objtype: Convert result of user __contains__ method to bool.Jon Bjarni Bjarnason2022-04-20
| | | | | | | | | | Per https://docs.python.org/3/reference/expressions.html#membership-test-operations For user-defined classes which define the contains() method, x in y returns True if y.contains(x) returns a true value, and False otherwise. Fixes issue #7884.
* tests: Rename test scripts, changing - to _ for consistency.Damien George2014-07-05
From now on, all new tests must use underscore. Addresses issue #727.