summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_richcmp.py
Commit message (Collapse)AuthorAgeFilesLines
* #7092 - Silence more py3k deprecation warnings, using ↵Florent Xicluna2010-03-211-1/+6
| | | | test_support.check_py3k_warnings() helper.
* Remove e assertIs definitions and use correct assert* methods.Ezio Melotti2010-02-201-3/+0
|
* Fix various missing import/unbound name errors.Georg Brandl2010-02-061-7/+7
|
* Reverting the Revision: 77368. I committed Flox's big patch for tests bySenthil Kumaran2010-01-081-8/+1
| | | | mistake. ( It may come in for sure tough)
* Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-081-1/+8
| | | | Patch by flox
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-12/+12
|
* Issue 2235: __hash__ is once again inherited by default, but inheritance can ↵Nick Coghlan2008-07-151-63/+2
| | | | be blocked explicitly so that collections.Hashable remains meaningful
* Patch #1549 by Thomas Herve.Guido van Rossum2007-12-191-1/+61
| | | | | | This changes the rules for when __hash__ is inherited slightly, by allowing it to be inherited when one or more of __lt__, __le__, __gt__, __ge__ are overridden, as long as __eq__ and __ne__ aren't.
* Exceptions should inherit from Exception now.Neal Norwitz2006-03-241-2/+2
|
* patch [ 1141428 ] more __contains__ testsGeorg Brandl2005-08-241-2/+2
|
* Deleting cyclic object comparison.Armin Rigo2003-10-281-42/+21
| | | | | SF patch 825639 http://mail.python.org/pipermail/python-dev/2003-October/039445.html
* Combine the functionality of test_support.run_unittest()Walter Dörwald2003-05-011-1/+1
| | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807.
* Port test_richcmp.py to PyUnit. From SF patch #662807 which additionalWalter Dörwald2003-04-291-179/+276
| | | | tests and comments.
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* SF patch #421922: Implement rich comparison for dicts.Tim Peters2001-05-081-0/+28
| | | | | | d1 == d2 and d1 != d2 now work even if the keys and values in d1 and d2 don't support comparisons other than ==, and testing dicts for equality is faster now (especially when inequality obtains).
* Whitespace normalization.Tim Peters2001-01-191-1/+1
|
* Since I'm about to check in a change to the recursion-detection codeGuido van Rossum2001-01-181-17/+10
| | | | | for comparisons that outlaws requets for ordering on recursive data structures, remove the tests for ordering recursive data structures.
* Add test for comparing recursive data types.Guido van Rossum2001-01-181-1/+42
|
* Add test for misbehaving rich comparisons (always returning 0) --Guido van Rossum2001-01-181-1/+23
| | | | these fall back to __cmp__.
* Rich comparison testsGuido van Rossum2001-01-181-0/+177