summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Saved and restored logging._handlerList at the same time as saving/restoring ↵Vinay Sajip2006-02-071-0/+4
| | | | logging._handlers.
* Get test_logging to not hang when running under regrtest.py -R ::Neal Norwitz2006-02-051-4/+4
| | | | | | | | | | | | | | Not sure why/how _handlers/_handlerList is out of sync. This could indicate a deeper problem. In test_logging, the only absolutely necessary change to get working was tcpserver.abort = 1. But we don't want to wait infinitely to join the threads, so give a 2.0 second timeout. There doesn't appear to be a need for a local abort variable in serve_until_stopped, so just use the instance member. Note the problem is only on HEAD, not in 2.4.
* Patch #1407135, bug #1424041, make mmap.mmap(-1, length) work the sameNeal Norwitz2006-02-052-2/+13
| | | | | | | | | | | on both Unix (SVR4 and BSD) and Windows. Restores behaviour of passing -1 for anonymous memory on Unix. Use MAP_ANONYMOUS instead of _ANON since the latter is deprecated according to Linux (gentoo) man pages. Should we continue to allow mmap.mmap(0, length) to work on Windows? 0 is a valid fd. Will backport bugfix portions.
* Fix typoNeal Norwitz2006-02-041-1/+1
|
* Patch #1413711: Certain patterns of differences were making difflibGustavo Niemeyer2006-01-311-0/+9
| | | | | touch the recursion limit. The applied patch inlines the recursive __helper method in a non-recursive way.
* Whitespace normalization.Tim Peters2006-01-291-1/+1
|
* Try a number of ports, in case 9020 is already in use.Martin v. Löwis2006-01-291-3/+14
|
* Explicitly close the server socket.Martin v. Löwis2006-01-291-0/+2
|
* Work around a Solaris peculiarity that caused test_pty to sometimes fail: aThomas Wouters2006-01-281-1/+8
| | | | | | | | | tty opened by os.openpty() isn't always a tty according to os.isatty(), when it's tested inside the process that opened it. Doesn't affect actual functionality, as using a tty this way is rarely, if ever, useful. Ignoring the failure allows the test for actual functionality to continue. Will backport to 2.4-maint.
* Improved handling of syntax errors.Jeremy Hylton2006-01-272-1/+239
| | | | | | | | | | | | | | | | | Expand set of errors caught in set_context(). Some new errors, some old error messages changed for consistency. Fixed error checking in generator expression code. The first set of tests were impossible condition given the grammar. In general, the ast code uses REQ() for those sanity checks. Fix some error handling for augmented assignments. As comments in the code explain, set_context() ought to work here, but I got unexpected crashes when I tried it. Should come back to this. Add note to Grammar that yield expression is a special case. Add doctest cases for SyntaxErrors raised by ast.c.
* There was a race condition where the connector would try to connectNeal Norwitz2006-01-251-0/+3
| | | | | | | | | | before the listener was ready (on gentoo x86 buildslave). This caused the listener to not exit normally since nobody connected to it (waited in accept()). The exception was raised in the other thread and the test failed. This fix doesn't completely eliminate the race, but should make it near impossible to trigger. Hopefully it's good enough.
* Remove generated test db filesNeal Norwitz2006-01-251-2/+3
|
* Fix bug #1413192, fix seg fault in bsddb if a txn was deleted before the env.Neal Norwitz2006-01-251-0/+6
| | | | Will backport.
* test_rude_shutdown(): Rewrote to use proper threadTim Peters2006-01-241-11/+19
| | | | synchronization and termination.
* Repaired new test failures on Windows:Tim Peters2006-01-231-3/+12
| | | | | | | - The path separator isn't "/" on Windows. - Leaving behind a read-only file causes cascades of bogus failures on Windows.
* Whitespace normalization.Tim Peters2006-01-231-1/+1
|
* Disable this test until I can test on big-endian machines and get passingNeal Norwitz2006-01-231-1/+2
|
* Test zipimporter a bit more. Also get working with -R :: option for finding ↵Neal Norwitz2006-01-231-4/+122
| | | | ref leaks
* Convenience function to remove a possibly non-existant fileNeal Norwitz2006-01-231-14/+10
|
* Test getsignal() and some error conditionsNeal Norwitz2006-01-231-1/+23
|
* Use unittest and make sure a few other cases don't crashNeal Norwitz2006-01-231-2/+23
|
* Added a test for the ability to specify a class attribute in Formatter ↵Vinay Sajip2006-01-201-16/+64
| | | | configuration. Contributed by Shane Hathaway.
* Added a test for the ability to specify a class attribute in Formatter ↵Vinay Sajip2006-01-201-0/+4
| | | | configuration. Contributed by Shane Hathaway.
* Checkin the test of patch #1400181.Georg Brandl2006-01-201-0/+14
|
* Add a more informative error message for test_float_parsing so the failingBrett Cannon2006-01-191-2/+4
| | | | locale can be known.
* Changes due to added test for fileConfig contributed by Shane Hathaway.Vinay Sajip2006-01-161-0/+6
|
* Added test for fileConfig. Contributed by Shane Hathaway.Vinay Sajip2006-01-161-1/+101
|
* collected my segfaulting Python examples from the SF trackersArmin Rigo2006-01-148-0/+99
| | | | (is the purpose of the crashers directory to scare people? :-)
* Whitespace normalization.Tim Peters2006-01-133-100/+99
|
* Test curses.setupterm() before initscr().Georg Brandl2006-01-121-2/+3
|
* Fix SF bug #1402308, segfault when using mmap(-1, ...)Neal Norwitz2006-01-112-0/+9
| | | | | | | This didn't crash on Linux, but valgrind complained. I'm not sure if this test is valid on Windows. Will backport.
* add another crash reported by Thomas WoutersNeal Norwitz2006-01-111-0/+10
|
* 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.