Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Reverting the Revision: 77368. I committed Flox's big patch for tests by | Senthil Kumaran | 2010-01-08 | 1 | -12/+4 |
| | | | | mistake. ( It may come in for sure tough) | ||||
* | Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵ | Senthil Kumaran | 2010-01-08 | 1 | -4/+12 |
| | | | | Patch by flox | ||||
* | Patch #2167 from calvin: Remove unused imports | Christian Heimes | 2008-02-23 | 1 | -1/+0 |
| | |||||
* | Port test_class to unittest. Patch #1671298. | Georg Brandl | 2007-08-24 | 1 | -286/+497 |
| | |||||
* | Correctly forward exception in instance_contains(). | Martin v. Löwis | 2006-11-08 | 1 | -0/+8 |
| | | | | | Fixes #1591996. Patch contributed by Neal Norwitz. Will backport. | ||||
* | (arre, arigo) SF bug #1350060 | Armin Rigo | 2006-06-08 | 1 | -0/+34 |
| | | | | | | Give a consistent behavior for comparison and hashing of method objects (both user- and built-in methods). Now compares the 'self' recursively. The hash was already asking for the hash of 'self'. | ||||
* | Don't use 'is not' to compare strings. | Michael W. Hudson | 2005-05-04 | 1 | -1/+1 |
| | | | | (spotted by reading pypy-svn :) | ||||
* | Check the type of values returned by __int__, __float__, __long__, | Neil Schemenauer | 2004-07-19 | 1 | -27/+80 |
| | | | | | | __oct__, and __hex__. Raise TypeError if an invalid type is returned. Note that PyNumber_Int and PyNumber_Long can still return ints or longs. Fixes SF bug #966618. | ||||
* | Fix a bunch of typos in documentation, docstrings and comments. | Walter Dörwald | 2003-10-20 | 1 | -1/+1 |
| | | | | (From SF patch #810751) | ||||
* | Added test for this fix to classobject.c: | Guido van Rossum | 2002-10-29 | 1 | -0/+27 |
| | | | | | | | | Since properties are supported here, is possible that instance_getattr2() raises an exception. Fix all code that made this assumption. Backport candidate. | ||||
* | Complete the absolute import patch for the test suite. All relative | Barry Warsaw | 2002-07-30 | 1 | -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. | ||||
* | Fix for SF bug 532646. This is a little simpler than what Neal | Guido van Rossum | 2002-06-13 | 1 | -0/+14 |
| | | | | | suggested there, based upon a better analysis (__getattr__ is a red herring). Will backport to 2.2. | ||||
* | Fiddle test_class so it passes with -Qnew. | Tim Peters | 2001-12-11 | 1 | -5/+20 |
| | |||||
* | Committing and closing SF patch #403671 by Finn Bock to help Jython | Barry Warsaw | 2001-08-20 | 1 | -11/+31 |
| | | | | pass these tests. | ||||
* | Finn Bock (SF patch #103345): Avoid outdated exec form in | Guido van Rossum | 2001-01-22 | 1 | -2/+2 |
| | | | | test_class.py. | ||||
* | Add test that ensures hash() of objects defining __cmp__ or __eq__ but | Guido van Rossum | 2001-01-18 | 1 | -0/+23 |
| | | | | not __hash__ raises TypeError. | ||||
* | Make reindent.py happy (convert everything to 4-space indents!). | Fred Drake | 2000-10-23 | 1 | -9/+8 |
| | |||||
* | Fix for test_class.py on Win64. id(self), which on Win64 returns a | Trent Mick | 2000-10-04 | 1 | -1/+1 |
| | | | | | PyLong, was used for the return value of a class __hash__ method, which *must* return a PyInt. Solution: hash() the id(self) value. | ||||
* | Apply SF patch #101029: call __getitem__ with a proper slice object if there | Thomas Wouters | 2000-08-17 | 1 | -0/+219 |
is no __getslice__ available. Also does the same for C extension types. Includes rudimentary documentation (it could use a cross reference to the section on slice objects, I couldn't figure out how to do that) and a test suite for all Python __hooks__ I could think of, including the new behaviour. |