summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Patch 473512: add GNU style scanning as gnu_getopt.Martin v. Löwis2002-06-061-0/+20
|
* Patch #551911: Escape . properly.Martin v. Löwis2002-06-061-1/+1
|
* Skip Montanaro's patch, SF 559833, exposing xrange type in builtins.Raymond Hettinger2002-06-051-0/+5
| | | | | Also, added more regression tests to cover the new type and test its conformity with range().
* SF bug 558179.Guido van Rossum2002-06-052-2/+2
| | | | | Change default for get() back to None. Will backport to 2.2.1.
* Address SF bug 519621: slots weren't traversed by GC.Guido van Rossum2002-06-041-0/+51
| | | | | | | | | | | | | | While I was at it, I added a tp_clear handler and changed the tp_dealloc handler to use the clear_slots helper for the tp_clear handler. Also tightened the rules for slot names: they must now be proper identifiers (ignoring the dirty little fact that <ctype.h> is locale sensitive). Also set mp->flags = READONLY for the __weakref__ pseudo-slot. Most of this is a 2.2 bugfix candidate; I'll apply it there myself.
* Test repair now that module.__init__ requires a name and initializesGuido van Rossum2002-06-041-6/+7
| | | | __name__ and __doc__.
* Repair the test (adding a docstring to the module type changed theGuido van Rossum2002-06-041-1/+1
| | | | docstring for an uninitialized module object).
* Surprising fix for SF bug 563060: module can be used as base class.Guido van Rossum2002-06-041-0/+48
| | | | | | | | | | | | | | Change the module constructor (module_init) to have the signature __init__(name:str, doc=None); this prevents the call from type_new() to succeed. While we're at it, prevent repeated calling of module_init for the same module from leaking the dict, changing the semantics so that __dict__ is only initialized if NULL. Also adding a unittest, test_module.py. This is an incompatibility with 2.2, if anybody was instantiating the module class before, their argument list was probably empty; so this can't be backported to 2.2.x.
* The warning filter was ineffective when this module was invoked as aGuido van Rossum2002-06-031-1/+1
| | | | script.
* regrtest has a newTim Peters2002-06-021-7/+34
| | | | | | | | | | | | | | -f/--fromfile <filename> option. This runs all and only the tests named in the file, in the order given (although -x may weed that list, and -r may shuffle it). Lines starting with '#' are ignored. This goes a long way toward helping to automate the binary-search-like procedure I keep reinventing by hand when a test fails due to interaction among tests (no failure in isolation, and some unknown number of predecessor tests need to run first -- now you can stick all the test names in a file, and comment/uncomment blocks of lines until finding a minimal set of predecessors).
* Generator.__call__() => Generator.flatten()Barry Warsaw2002-06-021-28/+56
| | | | Also, adjust to the new message/rfc822 tree layout.
* SF 560736. Optimize list iteration by filling the tp_iter slot.Raymond Hettinger2002-05-311-0/+1
|
* Fix SF bug [ 561825 ] Confusing error for "del f()"Jeremy Hylton2002-05-311-0/+34
| | | | In the error message, say del for del and assign for everything else.
* Verify that the imp can find and load .py files.Jeremy Hylton2002-05-301-0/+5
|
* This is patchMichael W. Hudson2002-05-271-3/+65
| | | | | | | [ 559250 ] more POSIX signal stuff Adds support (and docs and tests and autoconfery) for posix signal mask handling -- sigpending, sigprocmask and sigsuspend.
* Fix for SF bug 551412. When _PyType_Lookup() is called on a typeGuido van Rossum2002-05-241-0/+16
| | | | | | whose tp_mro hasn't been initialized, it would dump core. Fix this by checking for NULL and calling PyType_Ready(). Will fix this in 2.2.1 too.
* Whitespace normalization.Tim Peters2002-05-237-28/+27
|
* parseaddr(): Fixed in the same way that Message.getaddrlist() wasBarry Warsaw2002-05-231-0/+9
| | | | fixed (re: SF bug #555035). Include a unittest.
* force gzip module to open files using 'b'inary mode.Skip Montanaro2002-05-231-1/+5
| | | | closes patch #536278.
* Closes: #556025 seg fault when doing list(xrange(1e9))Neal Norwitz2002-05-221-0/+11
| | | | | | | | | A MemoryError is now raised when the list cannot be created. There is a test, but as the comment says, it really only works for 32 bit systems. I don't know how to improve the test for other systems (ie, 64 bit or systems where the data size != addressable size, e.g. 64 bit data, but 48 bit addressable memory)
* getaddresses(): Like the change in rfc822.py, this one needs to accessBarry Warsaw2002-05-221-0/+7
| | | | | | the AddressList.addresslist attribute directly. Also, add a test case for the email.Utils.getaddresses() interface.
* Message.getaddrlist(): Use the AddressList.addresslist attributeBarry Warsaw2002-05-211-1/+20
| | | | | | | | instead of calling the getaddrlist() method, since the latter doesn't work with multiple calls (it will return the empty list for the second and subsequent calls). Closes SF bug #555035. Include a unittest.
* Guess what? --disable-unicode proofing.Michael W. Hudson2002-05-201-4/+7
| | | | This is a strange test.
* More --disable-unicode stuff.Michael W. Hudson2002-05-201-4/+9
| | | | I'm getting better at vi!
* tolerate --disable-unicode...Michael W. Hudson2002-05-201-2/+3
|
* More mindless --disable-unicode proofing.Michael W. Hudson2002-05-201-23/+24
|
* easy --disable-unicode proofing.Michael W. Hudson2002-05-201-2/+4
|
* A test message w/ CRLF line endingsBarry Warsaw2002-05-191-0/+45
|
* Add two new tests of recent email package fixes: CRLF line endings,Barry Warsaw2002-05-191-0/+26
| | | | and explicit maxlinelen arguments to the Header constructor.
* Added Mitchell Surface's regression tests for base64. Closes patch #550002.Raymond Hettinger2002-05-181-0/+59
|
* This is patchMichael W. Hudson2002-05-151-28/+30
| | | | | | | [ 555382 ] test_array v.s. --disable-unicode + MvL's suggestions. Just the 32 failing tests in --disable-unicode builds now...
* Added tests for new degree/radian conversions.Raymond Hettinger2002-05-141-0/+2
|
* Jim Fulton reported a segfault in dir(). A heavily proxied objectGuido van Rossum2002-05-131-0/+20
| | | | | | | | returned a proxy for __class__ whose __bases__ was also a proxy. The merge_class_dict() helper for dir() assumed incorrectly that __bases__ would always be a tuple and used the in-line tuple API on the proxy. I will backport this to 2.2 as well.
* SF 554663. Add OpenBSD3. Bugfix candidate if anyone cares.Guido van Rossum2002-05-131-1/+1
|
* Make StringIO work in --disable-unicode builds...Michael W. Hudson2002-05-131-0/+2
|
* Adds tests for degrees() and radians() functions added to mathmodule.Raymond Hettinger2002-05-131-0/+10
| | | | Closes patch 552452 and feature request 426539.
* SF bug 555042: zip() may trigger MemoryError.Tim Peters2002-05-121-1/+11
| | | | | NOT a bugfix candidate: this is a fix to an optimization introduced in 2.3.
* random.gauss() uses a piece of hidden state used by nothing else,Tim Peters2002-05-051-0/+19
| | | | | | | | | | | and the .seed() and .whseed() methods failed to reset it. In other words, setting the seed didn't completely determine the sequence of results produced by random.gauss(). It does now. Programs repeatedly mixing calls to a seed method with calls to gauss() may see different results now. Bugfix candidate (random.gauss() has always been broken in this way), despite that it may change results.
* Remove all tests that rely on deprecated-in-2.2 features of xrange objects.Fred Drake2002-05-022-29/+0
| | | | | "What's New in Python 2.2" documented that these would be removed in Python 2.3.
* Added regression tests for xrange object attributes.Fred Drake2002-05-021-0/+23
| | | | See SF bug #551285.
* Buffer-object repitition and concatenation has worked all along; add a testFred Drake2002-05-021-0/+6
| | | | to make avoid regression.
* Fred's recent changes to support "-u all" resulted in subset resourceAndrew MacIntyre2002-04-301-1/+1
| | | | selections (eg "-u network") being ignored.
* builtin_zip(): Take a good guess at how big the result list will be,Tim Peters2002-04-291-0/+28
| | | | | | | and allocate it in one gulp. This isn't a bugfix, it's just a minor optimization that may or may not pay off.
* - New builtin function enumerate(x), from PEP 279. Example:Guido van Rossum2002-04-261-0/+118
| | | | | enumerate("abc") is an iterator returning (0,"a"), (1,"b"), (2,"c"). The argument can be an arbitrary iterable object.
* Add more tests for abstract isinstance() and issubclass().Neil Schemenauer2002-04-241-4/+93
|
* test_resource has no chance of running on Windows.Tim Peters2002-04-231-0/+1
|
* test_mmap started breaking on Windows, only when run after test_bsddb.Tim Peters2002-04-231-1/+1
| | | | | | | | | On Win2K it thought 'foo' started at byte offset 0 instead of at the pagesize, and on Win98 it thought 'foo' didn't exist at all. Somehow or other this is related to the new "in memory file" gimmicks in bsddb, but the old bsddb we use on Windows sucks so bad anyway I don't want to bother digging deeper. Flushing the file in test_mmap after writing to it makes the problem go away, so good enough.
* Unit tests for the changes in abstract.c version 2.101. The debugBarry Warsaw2002-04-231-0/+144
| | | | | | build's "undetected error" problems were originally detected with extension types, but we can whitebox test the same situations with new-style classes.
* Rewrote the PyUnit description so that it now recommends to useBarry Warsaw2002-04-231-6/+16
| | | | | run_suite() instead of run_unittest(). Best practice is to plan for multiple test classes.
* Add tests for the recent resource module change.Jeremy Hylton2002-04-232-0/+50
| | | | | | Also add a test that Python doesn't die with SIGXFSZ if it exceeds the file rlimit. (Assuming this will also test the behavior when the 2GB limit is exceed on a platform that doesn't have large file support.)