summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Remove outstanding_crashes again.Georg Brandl2006-01-101-38/+0
|
* Add outstanding_crashes.py with tests for crashes.Georg Brandl2006-01-102-0/+41
|
* As I threatened on python-dev, add a directory which contains all knownNeal Norwitz2006-01-104-0/+97
| | | | | | bugs which cause the interpreter to crash. I'm sure we can find a few more. Many missing bugs deal with variations on unchecked infinite recursion (like coerce.py).
* SF bug #1400822, Extended version of _curses over{lay,write} does not workNeal Norwitz2006-01-101-1/+7
| | | | | | Fix signatures to conform to doc (also fixed ungetmouse()). Will backport.
* Correct test_builtin locale handling.Georg Brandl2006-01-091-1/+1
|
* Bug #1400115, Fix segfault when calling curses.panel.userptr()Neal Norwitz2006-01-091-0/+11
| | | | | | without prior setting of the userptr. Will backport.
* Add a test file (which isn't run by regrtest) for bugs whichGeorg Brandl2006-01-081-0/+24
| | | | | | aren't fixed yet. Includes a first test (for compiler).
* Patch #1177307: UTF-8-Sig codec.Martin v. Löwis2006-01-081-0/+28
|
* Revert revision 41940: the test causes -uall toTim Peters2006-01-071-4/+1
| | | | fail everywhere.
* Add compiler test regarding optional arguments.Georg Brandl2006-01-061-1/+4
|
* initscr() will exit if there's an error. Try to catch the obvious failureNeal Norwitz2006-01-061-4/+7
| | | | | | | | | | | | | cases if TERM isn't set or is unknown (perhaps we should only check if unset or empty?) Skip the test if TERM isn't set. This seems to occur when running under buildbot and presumably cron. For some more info check here: http://mail.python.org/pipermail/python-checkins/2006-January/048704.html Will backport if it works.
* If the audio file does not exist, the test should be skipped. Will backport.Neal Norwitz2006-01-052-2/+2
|
* Skip test_curses if stdin is not a tty (like when run from cron or ↵Neal Norwitz2006-01-051-1/+3
| | | | buildbot). Will backport.
* test_main(): Restore the original root logger level after runningTim Peters2005-12-301-0/+9
| | | | | | | | | | the tests. This stops the confusing/annoying: No handlers could be found for logger "cookielib" message we got whenever some test running after test_logging happened to use cookielib.py (when not using regrtest's -r, this happened during test_urllib2; when using -r, it varied).
* Whitespace normalization.Tim Peters2005-12-301-1/+1
|
* Work around test_locale failing on Solaris.Martin v. Löwis2005-12-301-3/+8
| | | | Will backport to 2.4.
* Fix a delimiter detection problem in sniffer. Sniffing "a|b|c\r\n" wasSkip Montanaro2005-12-301-0/+7
| | | | | | | | returning 'a' as the delimiter. It now returns '|', but not because I understood better what the code was supposed to do. Would someone that understands the idea behind _guess_delimiter() (see its doc string) look to see if my fallback choice is better than before or if it's just serendipity that I picked the proper delimiter?
* SF#1391872Fredrik Lundh2005-12-291-0/+12
| | | | | Floating point literals don't work in non-US locale in 2.5. Patch and new locale tests by Hye-Shik Chang.
* SF bug #1153075: "PyXxx_Check(x) trusts x->ob_type->tp_mro".Armin Rigo2005-12-291-0/+31
| | | | | A patch by mwh to check that user-defined mro's are reasonable enough.
* adding in-place operators to the operator module.Armin Rigo2005-12-291-0/+47
|
* SF patch #1390657:Armin Rigo2005-12-292-0/+112
| | | | | | | | | | | | | | | | | * set sq_repeat and sq_concat to NULL for user-defined new-style classes, as a way to fix a number of related problems. See test_descr.notimplemented()). One of these problems was fixed in r25556 and r25557 but many more existed; this is a general fix and thus reverts r25556-r25557. * to avoid having PySequence_Repeat()/PySequence_Concat() failing on user-defined classes, they now fall back to nb_add/nb_mul if sq_concat/sq_repeat are not defined and the arguments appear to be sequences. * added tests. Backport candidate.
* Fix for problem with Sniffer class. If your delimiter is whitespace and theSkip Montanaro2005-12-281-1/+4
| | | | | | last field was empty it would strip the delimiter and incorrectly guess that "" was the delimiter. Reported in c.l.py by Laurent Laporte. Will backport.
* Whitespace normalization.Tim Peters2005-12-258-198/+198
|
* test_bug_1333982(): This one must fail under -O.Tim Peters2005-12-251-1/+4
| | | | All the --all test pass using -O on WinXP now.
* SF patch #1157027, cookielib mis-handles RFC 2109 cookies in Netscape modeNeal Norwitz2005-12-231-0/+33
|
* Fix SF #1117398, cookielib LWPCookieJar and MozillaCookieJar exceptionsNeal Norwitz2005-12-231-0/+25
| | | | | | cookielib.LWPCookieJar and .MozillaCookieJar are documented to raise cookielib.LoadError on attempt to load an invalid cookies file, but raise IOError instead. Compromise by having LoadError subclass IOError.
* Fix Armin's bug 1333982. He found it, he didn't created it :-)Neal Norwitz2005-12-181-0/+40
| | | | | | | | | | This code generated a C assertion: assert 1, ([s for s in x] + [s for s in x]) pass assert was completely broken, it needed to use the proper block. compiler_use_block() is now no longer used, so remove it.
* Fix Bug #1378022, UTF-8 files with a leading BOM crashed the interpreter.Neal Norwitz2005-12-182-0/+9
| | | | Needs backport.
* Get float() to be more portable across platforms. Disable hex strings.Neal Norwitz2005-12-181-2/+4
|
* SF Patch #1365916, mmap fails on AMD64Neal Norwitz2005-12-181-0/+16
| | | | Fix some 64-bit issues due to mismatch format characters w/actual data types
* SF patch #1355913, PEP 341 - Unification of try/except and try/finallyNeal Norwitz2005-12-171-0/+180
| | | | Modified since ast-arenas was implemented.
* Bug #1379994: Fix *unicode_escape codecs to encode r'\' as r'\\'Hye-Shik Chang2005-12-171-10/+14
| | | | just like string codecs.
* added encoding tests to ElementTree/cElementTree testsFredrik Lundh2005-12-162-15/+31
|
* Add two tests for the script interface.Walter Dörwald2005-12-151-5/+19
|
* added cElementTree testsFredrik Lundh2005-12-152-0/+204
|
* Revert r41662 and the part of 41552 that originally caused the problemNeal Norwitz2005-12-151-7/+0
| | | | | (calling ftell(stdin) doesn't seem defined). So we won't test errors from ftell unless we can do it portably.
* If quopri uses the implementations from binascii do the tests a second timeWalter Dörwald2005-12-141-10/+35
| | | | | using the Python implementations of the functions. This imcreases code coverage and makes sure that both implementations do the same thing.
* Subversion settings:Armin Rigo2005-12-141-339/+339
| | | | | | | | | svn:ignore *.pyc *.pyo svn:eol-style native The .py files appear to have been checked in with Windows or inconsistent line endings. The current check-in disrupts the 'svn blame', but hopefully it is irrelevant for freshly imported code.
* move the xml package implementation to xmlcore, and adjust the tests toFred Drake2005-12-143-68/+70
| | | | | test that package, not the xmlcore/PyXML switcheroo fiasco in the xml module/package
* Fix test not to fail on FreeBSD. Directories work also as dataHye-Shik Chang2005-12-131-0/+4
| | | | files on the platform.
* skip NIS entries, empty entries, etcFredrik Lundh2005-12-122-2/+4
|
* skip nis entries, if not filtered out by getpwall itselfFredrik Lundh2005-12-121-0/+2
|
* added xml.etree test (enough of the ElementTree selftest toFredrik Lundh2005-12-121-0/+339
| | | | make sure that all included components work)
* r1068@spiff: Fredrik | 2005-12-12 19:50:30 +0100Fredrik Lundh2005-12-121-0/+1
| | | | assorted xml.etree tweaks
* SF #1377897, Bus error in astNeal Norwitz2005-12-111-0/+4
| | | | | | If a line had multiple semi-colons and ended with a semi-colon, we would loop too many times and access a NULL node. Exit the loop early if there are no more children.
* Patch #1276356: Implement new resource "urlfetch" for regrtest.Hye-Shik Chang2005-12-109-74/+26
| | | | | This enables even impatient people to run tests that require remote files such as test_normalization and test_codecmaps_*.
* mwh spotted a copied error message, make it unique (and correct)Neal Norwitz2005-12-051-1/+1
|
* Fix SF #1373161, r41552 broke test_file on OS XNeal Norwitz2005-12-051-1/+1
| | | | | You apparently can seek(0) on sys.stdin on OS X. But you can't go backwards, so seek(-1).
* [Bug #1164912] Ensure Datetime wrapper class .value attribute is an 8-bit ↵Andrew M. Kuchling2005-12-041-0/+10
| | | | string, not a Unicode string
* Test another error case in PyFloat_FromString().Walter Dörwald2005-11-291-0/+2
|