History log of /external/python/cpython3/Lib/test/test_contains.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
97c1adf3935234da716d3289b85f72dcd67e90c2 18-Aug-2016 Guido van Rossum <guido@dropbox.com> Anti-registration of various ABC methods.

- Issue #25958: Support "anti-registration" of special methods from
various ABCs, like __hash__, __iter__ or __len__. All these (and
several more) can be set to None in an implementation class and the
behavior will be as if the method is not defined at all.
(Previously, this mechanism existed only for __hash__, to make
mutable classes unhashable.) Code contributed by Andrew Barnert and
Ivan Levkivskyi.
/external/python/cpython3/Lib/test/test_contains.py
38c707e7e0322f9139bb51ad73ede1e3b46985ef 13-Apr-2015 Zachary Ware <zachary.ware@gmail.com> Issue #21741: Update 147 test modules to use test discovery.

I have compared output between pre- and post-patch runs of these tests
to make sure there's nothing missing and nothing broken, on both
Windows and Linux. The only differences I found were actually tests
that were previously *not* run.
/external/python/cpython3/Lib/test/test_contains.py
577473fe687b38c8f01b0c372d6d2563680045b3 19-Jan-2010 Benjamin Peterson <benjamin@python.org> use assert[Not]In where appropriate

A patch from Dave Malcolm.
/external/python/cpython3/Lib/test/test_contains.py
c9c0f201fed21efcf669dbbf5f923eaf0eeb1db9 01-Jul-2009 Benjamin Peterson <benjamin@python.org> convert old fail* assertions to assert*
/external/python/cpython3/Lib/test/test_contains.py
a56c467ac39ab1a6a2e9dc2fa41a9f573f989839 27-Jan-2009 Mark Dickinson <dickinsm@gmail.com> Issue #1717: Remove cmp. Stage 1: remove all uses of cmp and __cmp__ from
the standard library and tests.
/external/python/cpython3/Lib/test/test_contains.py
4a1f593df5d4733831a1c4f03ca40c701433c43d 13-Nov-2008 Mark Dickinson <dickinsm@gmail.com> Issue #4296: Fix PyObject_RichCompareBool so that "x in [x]" evaluates to
True, even when x doesn't compare equal to itself. This was a regression
from 2.6.

Reviewed by R. Hettinger and C. Heimes.
/external/python/cpython3/Lib/test/test_contains.py
ee8712cda46338d223509cc5751fd36509ad3860 20-May-2008 Benjamin Peterson <benjamin@python.org> #2621 rename test.test_support to test.support
/external/python/cpython3/Lib/test/test_contains.py
77c02ebf3821c381883c9bc2675bafddbe0fff09 09-Feb-2008 Christian Heimes <christian@cheimes.de> Merged revisions 60481,60485,60489-60492,60494-60496,60498-60499,60501-60503,60505-60506,60508-60509,60523-60524,60532,60543,60545,60547-60548,60552,60554,60556-60559,60561-60562,60569,60571-60572,60574,60576-60583,60585-60586,60589,60591,60594-60595,60597-60598,60600-60601,60606-60612,60615,60617-60678 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r60618 | walter.doerwald | 2008-02-06 15:31:55 +0100 (Wed, 06 Feb 2008) | 6 lines

Remove month parameter from Calendar.yeardatescalendar(),
Calendar.yeardays2calendar() and Calendar.yeardayscalendar() as the methods
don't have such a parameter. Fixes issue #2017.

Rewrap content to 80 chars.
........
r60622 | facundo.batista | 2008-02-06 20:28:49 +0100 (Wed, 06 Feb 2008) | 4 lines


Fixes issue 1959. Converted tests to unittest.
Thanks Giampaolo Rodola.
........
r60626 | thomas.heller | 2008-02-06 21:29:17 +0100 (Wed, 06 Feb 2008) | 3 lines

Fixed refcounts and error handling.

Should not be merged to py3k branch.
........
r60630 | mark.dickinson | 2008-02-06 23:10:50 +0100 (Wed, 06 Feb 2008) | 4 lines

Issue 1979: Make Decimal comparisons (other than !=, ==) involving NaN
raise InvalidOperation (and return False if InvalidOperation is trapped).
........
r60632 | mark.dickinson | 2008-02-06 23:25:16 +0100 (Wed, 06 Feb 2008) | 2 lines

Remove incorrect usage of :const: in documentation.
........
r60634 | georg.brandl | 2008-02-07 00:45:51 +0100 (Thu, 07 Feb 2008) | 2 lines

Revert accidental changes to test_queue in r60605.
........
r60636 | raymond.hettinger | 2008-02-07 01:54:20 +0100 (Thu, 07 Feb 2008) | 1 line

Issue 2025: Add tuple.count() and tuple.index() to follow the ABC in collections.Sequence.
........
r60637 | mark.dickinson | 2008-02-07 02:14:23 +0100 (Thu, 07 Feb 2008) | 2 lines

Fix broken link in decimal documentation.
........
r60638 | mark.dickinson | 2008-02-07 02:42:06 +0100 (Thu, 07 Feb 2008) | 3 lines

IEEE 754 should be IEEE 854; give precise reference for
comparisons involving NaNs.
........
r60639 | raymond.hettinger | 2008-02-07 03:12:52 +0100 (Thu, 07 Feb 2008) | 1 line

Return ints instead of longs for tuple.count() and tuple.index().
........
r60640 | raymond.hettinger | 2008-02-07 04:10:33 +0100 (Thu, 07 Feb 2008) | 1 line

Merge 60627.
........
r60641 | raymond.hettinger | 2008-02-07 04:25:46 +0100 (Thu, 07 Feb 2008) | 1 line

Merge r60628, r60631, and r60633. Register UserList and UserString will the appropriate ABCs.
........
r60642 | brett.cannon | 2008-02-07 08:47:31 +0100 (Thu, 07 Feb 2008) | 3 lines

Cast a struct to a void pointer so as to do a type-safe pointer comparison
(mistmatch found by clang).
........
r60643 | brett.cannon | 2008-02-07 09:04:07 +0100 (Thu, 07 Feb 2008) | 2 lines

Remove unnecessary curly braces around an int literal.
........
r60644 | andrew.kuchling | 2008-02-07 12:43:47 +0100 (Thu, 07 Feb 2008) | 1 line

Update URL
........
r60645 | facundo.batista | 2008-02-07 17:16:29 +0100 (Thu, 07 Feb 2008) | 4 lines


Fixes issue 2026. Tests converted to unittest. Thanks
Giampaolo Rodola.
........
r60646 | christian.heimes | 2008-02-07 18:15:30 +0100 (Thu, 07 Feb 2008) | 1 line

Added some statistics code to dict and list object code. I wanted to test how a larger freelist affects the reusage of freed objects. Contrary to my gut feelings 80 objects is more than fine for small apps. I haven't profiled a large app yet.
........
r60648 | facundo.batista | 2008-02-07 20:06:52 +0100 (Thu, 07 Feb 2008) | 6 lines


Fixes Issue 1401. When redirected, a possible POST get converted
to GET, so it loses its payload. So, it also must lose the
headers related to the payload (if it has no content any more,
it shouldn't indicate content length and type).
........
r60649 | walter.doerwald | 2008-02-07 20:30:22 +0100 (Thu, 07 Feb 2008) | 3 lines

Clarify that the output of TextCalendar.formatmonth() and
TextCalendar.formatyear() for custom instances won't be influenced by calls
to the module global setfirstweekday() function. Fixes #2018.
........
r60651 | walter.doerwald | 2008-02-07 20:48:34 +0100 (Thu, 07 Feb 2008) | 3 lines

Fix documentation for Calendar.iterweekdays(): firstweekday is a property.
Fixes second part of #2018.
........
r60653 | walter.doerwald | 2008-02-07 20:57:32 +0100 (Thu, 07 Feb 2008) | 2 lines

Fix typo in docstring for Calendar.itermonthdays().
........
r60655 | raymond.hettinger | 2008-02-07 21:04:37 +0100 (Thu, 07 Feb 2008) | 1 line

The float conversion recipe is simpler in Py2.6
........
r60657 | raymond.hettinger | 2008-02-07 21:10:49 +0100 (Thu, 07 Feb 2008) | 1 line

Fix typo
........
r60660 | brett.cannon | 2008-02-07 23:27:10 +0100 (Thu, 07 Feb 2008) | 3 lines

Make sure a switch statement does not have repetitive case statements.
Error found through LLVM post-2.1 svn.
........
r60661 | christian.heimes | 2008-02-08 01:11:31 +0100 (Fri, 08 Feb 2008) | 1 line

Deallocate content of the dict free list on interpreter shutdown
........
r60662 | christian.heimes | 2008-02-08 01:14:34 +0100 (Fri, 08 Feb 2008) | 1 line

Use prefix decrement
........
r60663 | amaury.forgeotdarc | 2008-02-08 01:56:02 +0100 (Fri, 08 Feb 2008) | 5 lines

issue 2045: Infinite recursion when printing a subclass of defaultdict,
if default_factory is set to a bound method.

Will backport.
........
r60667 | jeffrey.yasskin | 2008-02-08 07:45:40 +0100 (Fri, 08 Feb 2008) | 2 lines

Oops! 2.6's Rational.__ne__ didn't work.
........
r60671 | hyeshik.chang | 2008-02-08 18:10:20 +0100 (Fri, 08 Feb 2008) | 2 lines

Update big5hkscs codec to conform to the HKSCS:2004 revision.
........
r60673 | raymond.hettinger | 2008-02-08 23:30:04 +0100 (Fri, 08 Feb 2008) | 4 lines

Remove unnecessary modulo division.
The preceding test guarantees that 0 <= i < len.
........
r60674 | raymond.hettinger | 2008-02-09 00:02:27 +0100 (Sat, 09 Feb 2008) | 1 line

Speed-up __iter__() mixin method.
........
r60675 | raymond.hettinger | 2008-02-09 00:34:21 +0100 (Sat, 09 Feb 2008) | 1 line

Fill-in missing Set comparisons
........
r60677 | raymond.hettinger | 2008-02-09 00:57:06 +0100 (Sat, 09 Feb 2008) | 1 line

Add advice on choosing between DictMixin and MutableMapping
........
/external/python/cpython3/Lib/test/test_contains.py
3add4d78ff9f5de02e2c0de09efe9a9b5317539f 30-Aug-2007 Collin Winter <collinw@gmail.com> Raise statement normalization in Lib/test/.
/external/python/cpython3/Lib/test/test_contains.py
1f5947b30a870008ebd2367b2f4f9a5897f657c9 22-May-2007 Walter Dörwald <walter@livinglogic.de> Remove have_unicode checks and merge those tests into the
normal code (or drop them if they only repeat previous
tests).
/external/python/cpython3/Lib/test/test_contains.py
805365ee39298f93e433e19ae0dd87c6f782145b 08-May-2007 Guido van Rossum <guido@python.org> Merged revisions 55007-55179 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/p3yk

........
r55077 | guido.van.rossum | 2007-05-02 11:54:37 -0700 (Wed, 02 May 2007) | 2 lines

Use the new print syntax, at least.
........
r55142 | fred.drake | 2007-05-04 21:27:30 -0700 (Fri, 04 May 2007) | 1 line

remove old cruftiness
........
r55143 | fred.drake | 2007-05-04 21:52:16 -0700 (Fri, 04 May 2007) | 1 line

make this work with the new Python
........
r55162 | neal.norwitz | 2007-05-06 22:29:18 -0700 (Sun, 06 May 2007) | 1 line

Get asdl code gen working with Python 2.3. Should continue to work with 3.0
........
r55164 | neal.norwitz | 2007-05-07 00:00:38 -0700 (Mon, 07 May 2007) | 1 line

Verify checkins to p3yk (sic) branch go to 3000 list.
........
r55166 | neal.norwitz | 2007-05-07 00:12:35 -0700 (Mon, 07 May 2007) | 1 line

Fix this test so it runs again by importing warnings_test properly.
........
r55167 | neal.norwitz | 2007-05-07 01:03:22 -0700 (Mon, 07 May 2007) | 8 lines

So long xrange. range() now supports values that are outside
-sys.maxint to sys.maxint. floats raise a TypeError.

This has been sitting for a long time. It probably has some problems and
needs cleanup. Objects/rangeobject.c now uses 4-space indents since
it is almost completely new.
........
r55171 | guido.van.rossum | 2007-05-07 10:21:26 -0700 (Mon, 07 May 2007) | 4 lines

Fix two tests that were previously depending on significant spaces
at the end of a line (and before that on Python 2.x print behavior
that has no exact equivalent in 3.0).
........
/external/python/cpython3/Lib/test/test_contains.py
ef87d6ed94780fe00250a551031023aeb2898365 02-May-2007 Guido van Rossum <guido@python.org> Rip out all the u"..." literals and calls to unicode().
/external/python/cpython3/Lib/test/test_contains.py
70a6b49821a3226f55e9716f32d802d06640cb89 12-Feb-2004 Walter Dörwald <walter@livinglogic.de> Replace backticks with repr() or "%r"

From SF patch #852334.
/external/python/cpython3/Lib/test/test_contains.py
817918cc3c10d0ed6b14e0e3f2bc0c5227c508cd 06-Aug-2002 Barry Warsaw <barry@python.org> Committing patch #591250 which provides "str1 in str2" when str1 is a
string of longer than 1 character.
/external/python/cpython3/Lib/test/test_contains.py
408b6d34de2b1a6ba690557def435adce9314184 31-Jul-2002 Barry Warsaw <barry@python.org> Complete the absolute import patch for the test suite. All relative
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.
/external/python/cpython3/Lib/test/test_contains.py
339d0f720e86dc34837547c90d3003a4a68d7d46 17-Aug-2001 Martin v. Löwis <martin@v.loewis.de> Patch #445762: Support --disable-unicode
- 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.
/external/python/cpython3/Lib/test/test_contains.py
de9725f1352856b7d6de1bb29383a7be5f181740 05-May-2001 Tim Peters <tim.peters@gmail.com> Make 'x in y' and 'x not in y' (PySequence_Contains) play nice w/ iterators.
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__.
/external/python/cpython3/Lib/test/test_contains.py
004d5e6880940ddbb38460986ac62ee0f1bae97d 23-Oct-2000 Fred Drake <fdrake@acm.org> Make reindent.py happy (convert everything to 4-space indents!).
/external/python/cpython3/Lib/test/test_contains.py
7c4f96f44281d652fda7069397dced4f6af6353d 27-Apr-2000 Jeremy Hylton <jeremy@alum.mit.edu> Deviant1 didn't work as advertised
/external/python/cpython3/Lib/test/test_contains.py
035a07e263edd2ebb24c07862d9de6488d8bb203 27-Apr-2000 Jeremy Hylton <jeremy@alum.mit.edu> add some more contains tests on the builtin types
/external/python/cpython3/Lib/test/test_contains.py
45ad3c48977110e1097efcf6332407deaf575c2e 10-Apr-2000 Guido van Rossum <guido@python.org> Marc-Andre Lemburg:

* More test cases for test_contains.py.
/external/python/cpython3/Lib/test/test_contains.py
da2361ac1df04934246c4e7d22cf0951b75836c4 07-Mar-2000 Guido van Rossum <guido@python.org> Add tests for char in string -- including required exceptions for
non-char in string.
/external/python/cpython3/Lib/test/test_contains.py
24512e6a355a8adcdc46d1b78cf92aa4b8aad38a 06-Mar-2000 Guido van Rossum <guido@python.org> Test cases for __contains__ code, by Moshe Zadka.
/external/python/cpython3/Lib/test/test_contains.py