summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Skip test_longexp for MacPython on Mac OS X. It triggers a pathological ↵Jack Jansen2002-03-151-1/+5
| | | | | | realloc slowdown. Some tests with shorter expressions lead me to the conclusion that it will eventually finish, but it may take a few weeks:-) 2.2.1 candidate.
* added test case to catch index errors with _localized_name classSkip Montanaro2002-03-151-0/+4
|
* first cut at skip-list for hp-ux 11 based upon input from Bill Lawler at HP.Skip Montanaro2002-03-151-0/+30
|
* "Fix" for SF bug #520644: __slots__ are not pickled.Guido van Rossum2002-03-141-0/+89
| | | | | | | | | | | As promised in my response to the bug report, I'm not really fixing it; in fact, one could argule over what the proper fix should do. Instead, I'm adding a little magic that raises TypeError if you try to pickle an instance of a class that has __slots__ but doesn't define or override __getstate__. This is done by adding a bozo __getstate__ that always raises TypeError. Bugfix candidate (also the checkin to typeobject.c, of course).
* Test for the fix I just checked in to moduleobject.c.Guido van Rossum2002-03-121-0/+12
| | | | Bugfix candidate.
* Change Windows file.truncate() to (a) restore the original file position,Tim Peters2002-03-121-9/+15
| | | | | | | | | | | | and (b) stop trying to prevent file growth. Beef up the file.truncate() docs. Change test_largefile.py to stop assuming that f.truncate() moves the file pointer to the truncation point, and to verify instead that it leaves the file position alone. Remove the test for what happens when a specified size exceeds the original file size (it's ill-defined, according to the Single Unix Spec).
* Fix typoNeal Norwitz2002-03-111-1/+1
|
* Add a check that SF bug 516727 is really fixed.Guido van Rossum2002-03-111-0/+10
|
* file_truncate(): provide full "large file" support on Windows, byTim Peters2002-03-111-15/+24
| | | | | | | | | | | | | | | | | | | | dropping MS's inadequate _chsize() function. This was inspired by SF patch 498109 ("fileobject truncate support for win32"), which I rejected. libstdtypes.tex: Someone who knows should update the availability blurb. For example, if it's available on Linux, it would be good to say so. test_largefile: Uncommented the file.truncate() tests, and reworked to do more. The old comment about "permission errors" in the truncation tests under Windows was almost certainly due to that the file wasn't open for *write* access at this point, so of course MS wouldn't let you truncate it. I'd be appalled if a Unixish system did. CAUTION: Someone should run this test on Linux (etc) too. The truncation part was commented out before. Note that test_largefile isn't run by default.
* Bugfix candidate.Guido van Rossum2002-03-111-0/+3
| | | | | | | Adapter from SF patch 528038; fixes SF bug 527816. The wrapper for __nonzero__ should be wrap_inquiry rather than wrap_unaryfunc, since the slot returns an int, not a PyObject *.
* SF patch 499062: Minor typo in test_generators.py.Tim Peters2002-03-101-1/+1
| | | | | | There's no actual patch there. It's an objection that Guido's example doesn't actually generator "leaves", so change the comment that says it does.
* Fix pyclbr test of httplib without really understanding pyclbr.Jeremy Hylton2002-03-081-1/+2
| | | | | It seems that the new class HTTP11 in httplib.test() isn't discoverable by pyclbr, which causes this test to fail.
* As part of fixing bug #523301, add a simple test of ConfigParser.write()Andrew M. Kuchling2002-03-082-0/+30
|
* SF bug 515943: searching for data with \0 in mmap.Tim Peters2002-03-081-0/+25
| | | | | | | | | mmap_find_method(): this obtained the string to find via s#, but it ignored its length, acting as if it were \0-terminated instead. Someone please run on Linux too (the extended test_mmap works on Windows). Bugfix candidate.
* Test forMichael W. Hudson2002-03-061-0/+12
| | | | | | [ 526039 ] devious code can crash structseqs Bugfix candidate.
* Special support for pickling os.stat and os.stat_vfs results portablyMichael W. Hudson2002-03-061-0/+11
| | | | | | | | (the types come from different modules on different platforms). Added tests for pickling these types. May be a bugfix candidate.
* A fix & test forMichael W. Hudson2002-03-051-0/+7
| | | | | | | | [ 496873 ] structseqs unpicklable by adding a __reduce__ method to structseqs. Will also commit this to the 2.2.1 branch momentarily.
* SF #506611, fix sys.setprofile(), sys.settrace() core dumpsNeal Norwitz2002-03-032-0/+10
| | | | when no arguments are passed
* _PyLong_Copy(): was creating a copy of the absolute value, but shouldTim Peters2002-03-021-0/+1
| | | | | | copy the sign too. Added a test to test_descr to ensure that it does. Bugfix candidate.
* SF patch 514641 (Naofumi Honda) - Negative ob_size of LongObjectsGuido van Rossum2002-03-011-0/+4
| | | | | | | | | | Due to the bizarre definition of _PyLong_Copy(), creating an instance of a subclass of long with a negative value could cause core dumps later on. Unfortunately it looks like the behavior of _PyLong_Copy() is quite intentional, so the fix is more work than feels comfortable. This fix is almost, but not quite, the code that Naofumi Honda added; in addition, I added a test case.
* Patch 520694: arraymodule.c improvements:Martin v. Löwis2002-03-011-4/+141
| | | | | | - make array.array a type - add Py_UNICODE arrays - support +=, *=
* Correct various errors:Martin v. Löwis2002-02-281-0/+141
| | | | | | | - Use substring search, not re search for user-agent and paths. - Consider * entry last. Unquote, then requote URLs. - Treat empty Disallow as "allow everything". Add test cases. Fixes #523041
* SF patch #523169, by Samuele Pedroni.Guido van Rossum2002-02-263-1/+14
| | | | | | There were never tests for the fact that list() always returns a *new* list object, even when the argument is a list, while tuple() may return a reference to the argument when it is a tuple. Now there are.
* OS/2 EMX port Library and regression test changes:Andrew MacIntyre2002-02-242-9/+22
| | | | | | | | | | | Lib/ os.py os2emxpath.py // added - OS/2 EMX specific path manipulation routines popen2.py site.py Lib/test/ test_fcntl.py test_longexp.py
* Somebody made list.__dict__ grow a '__doc__' key, but apparently didn'tTim Peters2002-02-191-0/+1
| | | | | run the test suite afterwards. Either that, or whether '__doc__' shows up is platform-dependent!
* Whitespace normalization.Tim Peters2002-02-161-1/+1
|
* SF bug #516372: test_thread: unhandled exc. in threadTim Peters2002-02-162-5/+13
| | | | | | | | Fix exit races in test_thread.py and test_threaded_import.py. I suspect the bug is provokable only under Linux (where child threads seem to get lots of cycles before they get killed after the main thread exits), or on multi-processor machines running other OSes. Bugfix candidate.
* Added regression test for start()/stop() returning bogus NULL.Fred Drake2002-02-081-0/+10
|
* Fix typoNeal Norwitz2002-02-081-1/+1
|
* Fix to the UTF-8 encoder: it failed on 0-length input strings.Marc-André Lemburg2002-02-072-24/+34
| | | | | | | | | | | | | | Fix for the UTF-8 decoder: it will now accept isolated surrogates (previously it raised an exception which causes round-trips to fail). Added new tests for UTF-8 round-trip safety (we rely on UTF-8 for marshalling Unicode objects, so we better make sure it works for all Unicode code points, including isolated surrogates). Bumped the PYC magic in a non-standard way -- please review. This was needed because the old PYC format used illegal UTF-8 sequences for isolated high surrogates which now raise an exception.
* Fix for the UTF-8 memory allocation bug and the UTF-8 encodingMarc-André Lemburg2002-02-061-12/+11
| | | | bug related to lone high surrogates.
* This test left a new set of 3 junk files behind each time it was run.Tim Peters2002-01-301-11/+18
|
* Test case of a singleton multipart; i.e. a multipart/* with only oneBarry Warsaw2002-01-271-0/+8
| | | | subpart.
* test_multipart_one_part(): Idempotency test case for a multipart/*Barry Warsaw2002-01-271-1/+5
| | | | with only one subpart.
* Disable code intended for PEP 277.Guido van Rossum2002-01-151-5/+6
|
* Only test ntpath.abspath() on Windows. This allows the rest of the module toFred Drake2002-01-151-2/+12
| | | | be tested regardless of the host platform.
* Ensure Unicode filenames work with glob - they already do, but the test ↵Mark Hammond2002-01-071-1/+9
| | | | seems worth keeping.
* Restore Python 2.1 StringIO.py behaviour: support concatenatingMarc-André Lemburg2002-01-061-0/+15
| | | | | | Unicode string snippets to larger Unicode strings. This fix should also go into Python 2.2.1.
* Remove unused imports, clean up trailing whitespace.Fred Drake2002-01-051-2/+0
|
* Check for time.struct_time in addition to tuples. Use 3 charactersMartin v. Löwis2002-01-051-0/+14
| | | | for zone hours. Fixes #499169.
* SF Patch #494867 test file methodsNeal Norwitz2002-01-011-0/+29
| | | | | | Test that the file methods raise ValueError when called on a closed file. Test .isatty() Test name, closed attributes
* test_support: add a docstring to vereq().Tim Peters2001-12-292-2/+11
| | | | test_complex: repair new test's usage of vereq().
* SF Patch #497487 add test to compare conjugate of a complex numberNeal Norwitz2001-12-291-1/+4
|
* SF Patch #494873 add tests for complex numbers including calls to int()/long()Neal Norwitz2001-12-291-0/+21
|
* SF Patch #494874 add tests for int()/long() invalid parametersNeal Norwitz2001-12-291-0/+23
|
* SF Patch #494872 test repr() of a built-in moduleNeal Norwitz2001-12-291-0/+1
|
* SF Patch #494876, test invalid parameters to pow()Neal Norwitz2001-12-291-0/+20
|
* Fix for SF bug ##497426: can't deepcopy recursive new objectsGuido van Rossum2001-12-281-1/+10
| | | | | | | | deepcopy(), _reconstruct(): pass the memo to the other function, so that recursive data structures built out of new-style objects may be deeply copied correctly. 2.2.1 bugfix!
* Merge of the release22 branch changes back into the trunk.Barry Warsaw2001-12-211-0/+7
|
* test_parseaddr_empty(): New test for assuring thatBarry Warsaw2001-12-201-0/+4
| | | | | Utils.parseaddr('<>') -- i.e. on an empty address, returns the empty string. Built on rfc822, this used to return None.