summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_contains.py
Commit message (Collapse)AuthorAgeFilesLines
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-6/+6
| | | | From SF patch #852334.
* Committing patch #591250 which provides "str1 in str2" when str1 is aBarry Warsaw2002-08-061-46/+8
| | | | string of longer than 1 character.
* Complete the absolute import patch for the test suite. All relativeBarry Warsaw2002-07-301-1/+1
| | | | | | | | imports of test modules now import from the test package. Other related oddities are also fixed (like DeprecationWarning filters that weren't specifying the full import part, etc.). Also did a general code cleanup to remove all "from test.test_support import *"'s. Other from...import *'s weren't changed.
* Patch #445762: Support --disable-unicodeMartin v. Löwis2001-08-171-45/+48
| | | | | | | | - Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled - check for Py_USING_UNICODE in all places that use Unicode functions - disables unicode literals, and the builtin functions - add the types.StringTypes list - remove Unicode literals from most tests.
* Make 'x in y' and 'x not in y' (PySequence_Contains) play nice w/ iterators.Tim Peters2001-05-051-2/+2
| | | | | | | | | | | | | NEEDS DOC CHANGES A few more AttributeErrors turned into TypeErrors, but in test_contains this time. The full story for instance objects is pretty much unexplainable, because instance_contains() tries its own flavor of iteration-based containment testing first, and PySequence_Contains doesn't get a chance at it unless instance_contains() blows up. A consequence is that some_complex_number in some_instance dies with a TypeError unless some_instance.__class__ defines __iter__ but does not define __getitem__.
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-65/+65
|
* Deviant1 didn't work as advertisedJeremy Hylton2000-04-271-4/+4
|
* add some more contains tests on the builtin typesJeremy Hylton2000-04-271-0/+47
|
* Marc-Andre Lemburg:Guido van Rossum2000-04-101-1/+58
| | | | * More test cases for test_contains.py.
* Add tests for char in string -- including required exceptions forGuido van Rossum2000-03-071-0/+23
| | | | non-char in string.
* Test cases for __contains__ code, by Moshe Zadka.Guido van Rossum2000-03-061-0/+41