summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Add a dummy test_queue output file to make regrtest happy.Guido van Rossum2002-08-081-0/+1
|
* Update test output.Jeremy Hylton2002-07-121-0/+5
|
* Backport changes.Jeremy Hylton2002-07-121-6/+34
| | | | | | | | Change _begin() back to begin(). Fix for SF bug 579107. Fix for SF bug #432621: httplib: multiple Set-Cookie headers Fix SF bug #575360 Handle HTTP/0.9 responses.
* Backport various bug fixes from trunk.Jeremy Hylton2002-07-021-2/+2
| | | | | The 2.1 maintenance branch is now identical to the trunk through rev 1.54 of httplib.py.
* Backport patch for revision 1.58 to the Py2.1.x maintenance branch.Barry Warsaw2002-05-031-0/+6
| | | | | | This fixes parseaddr() for the following RFC 2822 valid field: To: User J. Person <person@dom.ain>
* Update a SourceForge issue number; IDs less than 200000 are no longer valid.Fred Drake2002-05-021-1/+1
| | | | (The issues were re-numbered, not lost.)
* Added regression tests for xrange object attributes.Fred Drake2002-05-021-0/+21
| | | | See SF bug #551285.
* Backport buffer() tests from trunk to avoid regression failures.Fred Drake2002-05-022-0/+30
|
* *sigh* did a 'make test' in the wrong window. fixing this up toAnthony Baxter2002-04-231-8/+8
| | | | not include 'True'. test_queue passes again.
* Backport fixes for two nested scopes bugs.Jeremy Hylton2002-04-202-7/+74
| | | | | | | | | | | | frameobject.c: make sure free and cell vars make it into locals, which makes eval work. bltinmodule.c & ceval.c: make sure a code object with free variables that is passed to exec or eval raises an exception. Also duplicate the current trunk test suite in the 2.1 branch, except for certain necessary changes: different warnings raised by 2.1, need for __future__.
* This commit was manufactured by cvs2svn to create branchcvs2svn2002-04-191-0/+158
| | | | 'release21-maint'.
* This commit was manufactured by cvs2svn to create branchcvs2svn2002-04-082-0/+39
| | | | 'release21-maint'.
* Add a test that was added in Python 2.2: test Weak*Dictionary.setdefault().Fred Drake2002-03-131-0/+25
| | | | | The purpose is to avoid regression on SF bug #529273. This test is stronger than the one submitted with the bug report.
* backport 1.14:Anthony Baxter2002-01-101-6/+2
| | | | | | | Fix the second reincarnation of SF #456395 -- failure on IRIX. This time use .replace() to change all \r\n into \n, not just the last one. This makes test_pty work on Irix.
* backport guido's 1.20 - test sktobj.sendall()Anthony Baxter2001-11-011-1/+1
| | | | needed this anyway.
* The 2.1 regrest.py doesn't have the test_main() feature yet, so alwaysGuido van Rossum2001-10-191-2/+1
| | | | call test_main() at the end.
* This commit was manufactured by cvs2svn to create branchcvs2svn2001-10-192-0/+103
| | | | 'release21-maint'.
* Backport Guido's checkin 1.3:Thomas Wouters2001-07-191-2/+2
| | | | | Should raise TestSkipped, not ImportError, when deciding to skip the test.
* Backport of the socketserver test, including output file (which is stillThomas Wouters2001-07-111-0/+1
| | | | | | | | | | necessary in the 2.1 branch.) Guido's original checkin message: A test suite for SocketServer.py that exposes the various bugs just fixed. Regrettably, this must be run manually -- somehow the I/O redirection of the regression test breaks the test. When run under the regression test, this raises ImportError with a warning to that effect.
* This commit was manufactured by cvs2svn to create branchcvs2svn2001-07-111-0/+162
| | | | 'release21-maint'.
* When reading a continuation line, make sure we still use the transformedFred Drake2001-07-061-0/+7
| | | | | | | name when filling in the internal data structures, otherwise we incorrectly raise a KeyError. This fixes SF bug #432369.
* Backport of Tim's checkin 1.35:Thomas Wouters2001-06-271-0/+7
| | | | | | | | | SF bug 434186: 0x80000000/2 != 0x80000000>>1 i_divmod: New and simpler algorithm. Old one returned gibberish on most boxes when the numerator was -sys.maxint-1. Oddly enough, it worked in the release (not debug) build on Windows, because the compiler optimized away some tricky sign manipulations that were incorrect in this case. Makes you wonder <wink> ...
* Re-incarnate dead turd of old test_mutants output file.Thomas Wouters2001-05-231-0/+1
|
* Now that the backporting of test_mutants.py worked successfully (BarnevelderThomas Wouters2001-05-231-1/+1
| | | | chickens work best!) adapt test_mutants to the absense of 'key in dict'.
* This commit was manufactured by cvs2svn to create branchcvs2svn2001-05-231-0/+153
| | | | 'release21-maint'.
* Net result of Tim's checkins to stropmodule.c (2.78, 2.79, 2.80, 2.81),Thomas Wouters2001-05-231-0/+2
| | | | | | | | stringobject.c (2.114, 2.115) and test_strop.py (1.11, 1.12). Fixes 'replace' behaviour on systems on which 'malloc(0)' returns NULL (together with previous checkins) and re-synchs the string-operation code in stringobject.c and stropmodule.c, with the exception of 'replace', which has the old semantics in stropmodule but the new semantics in stringobjects.
* *** empty log message ***Thomas Wouters2001-05-231-0/+6
|
* Backport Jeremy's checkins (frameobject.c:2.50, test_scope.py:1.16,Thomas Wouters2001-05-232-0/+21
| | | | | | | test_scope:1.8): SF patch 419176 from MvL; fixed bug 418977 Two errors in dict_to_map() helper used by PyFrame_LocalsToFast().
* Backport MAL's checkin 1.32:Thomas Wouters2001-05-231-0/+6
| | | | Fix for bug #417030: "print '%*s' fails for unicode string"
* Backport Jeremy's checkin 1.7:Thomas Wouters2001-05-231-0/+1
| | | | | | | | | | Fix 2.1 nested scopes crash reported by Evan Simpson The new test case demonstrates the bug. Be more careful in symtable_resolve_free() to add a var to cells or frees only if it won't be added under some other rule. XXX Add new assertion that will catch this bug.
* Backport Jeremy's checkin 1.15:Thomas Wouters2001-05-231-0/+11
| | | | | | | | | | Fix 2.1 nested scopes crash reported by Evan Simpson The new test case demonstrates the bug. Be more careful in symtable_resolve_free() to add a var to cells or frees only if it won't be added under some other rule. XXX Add new assertion that will catch this bug.
* Add a test case for Weak*Dictionary.update() that would have caught aFred Drake2001-04-161-0/+25
| | | | recently reported bug; also exposed some other bugs in the implementation.
* Change the test data to ask for class C from module __main__ ratherGuido van Rossum2001-04-161-2/+3
| | | | | | than from module pickletester. Using the latter turned out to cause the test to break when invoked as "import test.test_pickle" or "import test.autotest".
* In order to make this test work on Windows, the test locale has to beGuido van Rossum2001-04-151-2/+7
| | | | | set to 'en' there -- Windows does not understand the 'en_US' locale. The test succeeds there.
* Set the SO_REUSEADDR socket option in the server thread -- this seemsGuido van Rossum2001-04-151-0/+1
| | | | | needed on some platforms (e.g. Solaris 8) when the test is run twice in quick succession.
* Add "import thread" at the top of the module; this prevents us fromGuido van Rossum2001-04-142-0/+2
| | | | | failing later when Python is compiled without threading but a failing 'threading' module can be imported due to an earlier (caught) attempt.
* If the sunaudiodev module is available but we cannot find an audioFred Drake2001-04-141-1/+9
| | | | | | | device to use, skip this test instead of allowing an error to occur when we attempt to play sound on the absent device. Verified by Mark Favas.
* Added regression test for SF bug #415660 (failure to invalidate allFred Drake2001-04-131-5/+24
| | | | | | references to an object before calling registered callbacks). Change last uses of verify() to self.assert_().
* Fix typo in comment (the module is now called _testcapi, not _test).Guido van Rossum2001-04-131-1/+1
|
* Change error message raised when free variable is not yet bound. ItJeremy Hylton2001-04-131-1/+2
| | | | | | | | | now raises NameError instead of UnboundLocalError, because the var in question is definitely not local. (This affects test_scope.py) Also update the recent fix by Ping using get_func_name(). Replace tests of get_func_name() return value with call to get_func_desc() to match all the other uses.
* Add test for SF bug #405427Jeremy Hylton2001-04-132-0/+36
|
* Update to reflect new tokenize_test.pyJeremy Hylton2001-04-131-8/+8
|
* There's no need for the tokenize tests to include a SyntaxError.Jeremy Hylton2001-04-131-1/+1
|
* Patch #415777: new grouping strategy.Martin v. Löwis2001-04-132-0/+38
| | | | | | | | | fixes bug #414940, and redoes the fix for #129417 in a different way. It also fixes a number of other problems with locale-specific formatting: If there is leading or trailing spaces, then no grouping should be applied in the spaces, and the total length of the string should not be changed due to grouping. Also added test case which works only if the en_US locale is available.
* Bug 415514 reported that e.g.Tim Peters2001-04-121-4/+4
| | | | | | | | | | | | "%#x" % 0 blew up, at heart because C sprintf supplies a base marker if and only if the value is not 0. I then fixed that, by tolerating C's inconsistency when it does %#x, and taking away that *Python* produced 0x0 when formatting 0L (the "long" flavor of 0) under %#x itself. But after talking with Guido, we agreed it would be better to supply 0x for the short int case too, despite that it's inconsistent with C, because C is inconsistent with itself and with Python's hex(0) (plus, while "%#x" % 0 didn't work before, "%#x" % 0L *did*, and returned "0x0"). Similarly for %#X conversion.
* Fix for SF bug #415514: "%#x" % 0 caused assertion failure/abort.Tim Peters2001-04-121-0/+16
| | | | | | | | | | | | | http://sourceforge.net/tracker/index.php?func=detail&aid=415514&group_id=5470&atid=105470 For short ints, Python defers to the platform C library to figure out what %#x should do. The code asserted that the platform C returned a string beginning with "0x". However, that's not true when-- and only when --the *value* being formatted is 0. Changed the code to live with C's inconsistency here. In the meantime, the problem does not arise if you format a long 0 (0L) instead. However, that's because the code *we* wrote to do %#x conversions on longs produces a leading "0x" regardless of value. That's probably wrong too: we should drop leading "0x", for consistency with C, when (& only when) formatting 0L. So I changed the long formatting code to do that too.
* Reverting the "unixware7" patch: atan2(0, 1) should be 0, regardless ofTim Peters2001-04-121-5/+1
| | | | | platform. If it returns pi on the unixware7 platform, they have a bug in their libm atan2.
* Unixware 7 support by Billy G. Allie (SF patch 413011)Guido van Rossum2001-04-113-3/+10
|
* Test cases for examples of ext call error handling.Jeremy Hylton2001-04-112-0/+40
| | | | Fix to SF bug #414743 based on Michael Hudson's patch #414750.
* Use the WeakKeyDictionary and WeakValueDictionary classes directlyFred Drake2001-04-101-2/+2
| | | | instead of using the mapping() function.