summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* metaclass(): add tests for metaclasses written in Python: one thatGuido van Rossum2001-08-171-0/+33
| | | | | subclasses type, one that doesn't (the latter isn't fully functional yet).
* Added a test for module repr truncation when the package name isBarry Warsaw2001-08-161-0/+35
| | | | really long. Closes SF bug #437984.
* classobject.c:instancemethod_descr_get(): when a bound method isGuido van Rossum2001-08-161-1/+1
| | | | | | | assigned to a class variable and then accessed via an instance, it should not be rebound. test_descr.py:methods(): test for the condition above.
* [Patch #441691] preprocess() method for Borland C compiler.Andrew M. Kuchling2001-08-161-1/+35
| | | | I have no way of testing this.
* test_descr started breaking in yet another way in the same place.Tim Peters2001-08-161-2/+6
|
* New unit test for the mimetypes module, to avoid future regressions.Fred Drake2001-08-161-0/+42
|
* Another egregious error that copied the encodings info over the suffixFred Drake2001-08-161-1/+1
| | | | info. Caught by the tests that I'm writing now.
* Use (c)StringIO for collecting bytes. Fixes bug #451622.Martin v. Löwis2001-08-161-8/+12
|
* Repair some accidents causing Windows failures:Tim Peters2001-08-162-5/+5
| | | | | | | + test_compare. While None compares less than anything else, it's not always the case that None has the smallest id(). + test_descr. The output of %p (pointer) formats varies across platforms. In particular, on Windows it doesn't produce a leading "0x".
* Bad bug: the MimeTypes.readfp() was supposed to take a file object as aFred Drake2001-08-161-2/+2
| | | | | | | | parameter, but did not. This was found because it can create failures elsewhere based on the presence of mime.types files in some common locations the module searches by default. (I will be writing a test for this module shortly!)
* [Patch #444854 from twburton]Andrew M. Kuchling2001-08-161-1/+4
| | | | Add executable extension, needed to get the program name right on Win32
* [Patch #442530 from twburton]Andrew M. Kuchling2001-08-161-4/+4
| | | | | Provide include_dirs argument to all calls to ._preprocess and ._compile Fix typo: pattern.search(pattern) should be pattern.search(line)
* The change of type(None).__name__ from 'None' to 'NoneType' broke thisGuido van Rossum2001-08-162-4/+4
| | | | test in a trivial way. Fixed.
* Add tests for overridable operators that have default interpretationsGuido van Rossum2001-08-151-0/+127
| | | | | (__hash__ etc.), in static and dynamic classes, overridden and default.
* Rewrote Jack's latest change so it does what it intended to do...Just van Rossum2001-08-151-4/+8
|
* Given a class without __cmp__ or __eq__, cmp() of two instances ofGuido van Rossum2001-08-151-0/+8
| | | | | | that class should compare the id() of those instances. Add a test that verifies this. This test currently fails; I believe this is caused by object.c:2.132 (Patch #424475 by loewis).
* Add a test to verify that bound methods work correctly.Guido van Rossum2001-08-151-0/+18
|
* Don't remove non-directories from sys.path on the mac: filesJack Jansen2001-08-151-2/+3
| | | | can be on sys.path too.
* Move one of the tests into the "PEP 255" section, to reflect a change inTim Peters2001-08-151-12/+15
| | | | the PEP.
* Fix typo in astgen scriptJeremy Hylton2001-08-141-1/+1
|
* Add a test for a weird bug I just discovered: a dynamic subclassGuido van Rossum2001-08-141-0/+5
| | | | doesn't have a __dict__!
* Regenerated from new ast.txt and new astgen.pyJeremy Hylton2001-08-141-12/+23
|
* Test the new semantics for setting and deleting a function's __dict__Barry Warsaw2001-08-141-45/+50
| | | | | | | | | attribute. Deleting it, or setting it to a non-dictionary result in a TypeError. Note that getting it the first time magically initializes it to an empty dict so that func.__dict__ will always appear to be a dictionary (never None). Closes SF bug #446645.
* reload(exceptions) should not raise an ImportError, but should actBarry Warsaw2001-08-131-0/+8
| | | | just like reload(sys). Test that this is so. Closes SF bug #422004.
* Repair Unix-specific assumptions that caused this to fail on Windows.Tim Peters2001-08-131-20/+18
|
* found_terminator(): Add a debug print showing the data.Barry Warsaw2001-08-131-1/+2
|
* Nick Mathewson: test suite for the class browser support module.Fred Drake2001-08-131-0/+158
|
* Nick Mathewson: Make sure the recursion is handled properly.Fred Drake2001-08-131-4/+4
| | | | This is part of SF patch #440292.
* Remove redundant import (PyChecker).Guido van Rossum2001-08-131-2/+4
| | | | Update greeting message to avoid the long copyright notice.
* Remove unused variable 'imports' from readmodule_ex().Guido van Rossum2001-08-131-1/+0
|
* Remove redundant 'import string' (PyChecker).Guido van Rossum2001-08-131-1/+0
|
* Remove redundant imports (PyChecker).Guido van Rossum2001-08-131-2/+0
|
* Remove redundant 'import sys' (PyChecker).Guido van Rossum2001-08-131-1/+1
|
* Remove two redundant statements (PyChecker).Guido van Rossum2001-08-131-2/+0
|
* Remove redundant assignment l = [] from poll3() -- copy-and-pasteGuido van Rossum2001-08-131-1/+0
| | | | error.
* Commenting out the getfillable() method -- it's broken, and nobodyGuido van Rossum2001-08-131-2/+3
| | | | remembers what it is supposed to do. :-(
* Remove redefinition of has_option() methodAndrew M. Kuchling2001-08-131-7/+0
|
* Remove empty __init__ (PyChecker)Andrew M. Kuchling2001-08-131-3/+0
|
* Remove redefinition of writelines() methodAndrew M. Kuchling2001-08-131-5/+0
| | | | Remove unused variable and import
* Remove unused variable (PyChecker)Andrew M. Kuchling2001-08-133-3/+0
|
* Remove some dead code (PyChecker)Andrew M. Kuchling2001-08-131-3/+1
|
* Add forgotten import (PyChecker)Andrew M. Kuchling2001-08-131-1/+1
|
* Remove unused import (PyChecker)Andrew M. Kuchling2001-08-132-2/+0
|
* Remove redundant importAndrew M. Kuchling2001-08-131-1/+1
|
* Capture exception message (PyChecker)Andrew M. Kuchling2001-08-131-1/+1
|
* Remove unused imports (PyChecker)Andrew M. Kuchling2001-08-131-4/+0
|
* Remove unused variableAndrew M. Kuchling2001-08-131-1/+1
|
* Fix malformed line (PyChecker)Andrew M. Kuchling2001-08-131-1/+1
|
* Fix two bugs discovered by PyChecker. (I cannot test these, but I'mGuido van Rossum2001-08-131-2/+2
| | | | | confident that the old code was utterly broken -- the worse that can happen is that the new code is still broken.)
* Fix for NameError caught by PyChecker.Andrew M. Kuchling2001-08-131-2/+2
| | | | (This command seems to be essentially untested; should fix that...)