summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* #9361: add some tests for calendar.leapdaysR. David Murray2010-12-311-0/+21
| | | | Patch by John Chandler.
* Issue #10788: Changed test_logging setUp logic to provide more information.Vinay Sajip2010-12-301-2/+6
|
* Fix Issue 10753 - Don't quote ;=, in the PATH_INFO envvar.Senthil Kumaran2010-12-291-0/+4
|
* Close stdout, clear ResourceWarningBrian Curtin2010-12-291-0/+1
|
* Fix #9333 on Windows XP, where os.symlink is not a possibility.Brian Curtin2010-12-291-1/+1
|
* Does not install a logging handler. Fixes issue 10626.Brian Quinlan2010-12-281-10/+3
|
* #9824: encode , and ; in cookie values so that browsers don't split on themR. David Murray2010-12-281-0/+8
| | | | | | | | There is a small chance of backward incompatibility here, but only for non-SimpleCookie applications reading SimpleCookie generated cookies. Even then, any such ap is likely to be handling escaped values already, and it would take a fairly perverse implementation of unescaping to fail to unescape these newly escaped chars, so the risk seems minimal.
* This file was obsolted by a number of adjustments to the os.symlink testsBrian Curtin2010-12-281-206/+0
| | | | on Windows, and is no longer needed by any tests or Lib/test/support.py
* Fix Issue10759 - html.parser.unescape() fails on HTML entities with ↵Senthil Kumaran2010-12-281-0/+5
| | | | incorrect syntax
* Fix #9333. The symlink function is always available now, raising OSErrorBrian Curtin2010-12-289-27/+38
| | | | when the user doesn't hold the symbolic link privilege rather than hiding it.
* Issue #10783: Fix test_sys, pack('c', ' ') => pack('c', b' ')Victor Stinner2010-12-281-1/+1
|
* Issue #10783: struct.pack() doesn't encode implicitly unicode to UTF-8Victor Stinner2010-12-281-57/+46
| | | | | | | * Replace "bytes" by "bytes object" in struct error messages * Document the API change in What's new in Python 3.2 * Fix test_wave * Remove also ugly implicit conversions in test_struct
* #10767: update README in crashers; not all may have a bug entry and/or be fixed.Georg Brandl2010-12-281-14/+10
|
* #10777: fix iteration over dict keys while mutating the dict.Georg Brandl2010-12-281-0/+9
|
* #7056: runtest and runtest_inner don't use testdir, so drop it from their sigsR. David Murray2010-12-271-14/+8
| | | | | I've only tested regular runs and -j runs. If I've broken anything else I'm sure I'll hear about it sooner or later.
* Issue #10626: test_logging now preserves logger disabled states.Vinay Sajip2010-12-271-1/+9
|
* Issue #10774: test_logging now removes temp files created during tests.Vinay Sajip2010-12-271-7/+10
|
* Skip test that does not raise an error on Windows.R. David Murray2010-12-271-0/+2
| | | | | I'm assuming that the putative path from the malformed pth file is simply not found and therefore ignored.
* Escape file path before searching for it in output via regexR. David Murray2010-12-271-3/+7
|
* #5258/#10642: print fn, line, traceback and continue when .pth file is brokenR. David Murray2010-12-261-0/+48
| | | | | | | | | | If a .pth file contained an error, it could cause a traceback in site.py, terminating its processing. In 2.7 and 3.2, the interpreter will then not start. Previously, a message would print saying to use -v to get the traceback. In either case, the traceback generated for a failed .pth file did not include the .pth filename, making it difficult to debug the problem. Now site.py reports not only the .pth filename but also the line number causing the error, and just skips the remainder of the file.
* Issue #10763: subprocess.communicate() closes stdout and stderr if both areVictor Stinner2010-12-251-14/+20
| | | | | | pipes (bug specific to Windows). Improve also the unit test: write a portable unit test.
* Assign closed handles to None to make errors more obvious if they are used.Brian Quinlan2010-12-251-2/+2
|
* Better reporting of test failures on Windows.Brian Quinlan2010-12-241-3/+15
|
* Fix some mistakes- Issue3243 (r87399) Correcting the operator precendenceSenthil Kumaran2010-12-241-2/+0
| | | | problem with Content-Length header and uncommenting the test.
* Fix typo in superclass method nameÉric Araujo2010-12-231-1/+1
|
* Issue #10254: Fixed a crash and a regression introduced by the ↵Alexander Belopolsky2010-12-232-4/+14
| | | | implementation of PRI 29.
* Fix ResourceWarning in test_normalizationAntoine Pitrou2010-12-221-0/+1
|
* #4871: check that zipfile password is bytes, and give useful error message.R. David Murray2010-12-211-0/+6
| | | | | | | | | Previously passing a string in as the password would fail either with an assertion error or a TypeError with a confusing error message. Note that a string can't be accepted since zipfile has no way to guess what encoding should be used to turn it into bytes. Patch by Victor Stinner.
* Issue #10750: The `raw` attribute of buffered IO objects is now read-only.Antoine Pitrou2010-12-211-0/+13
|
* Make test_compileall more robust by using -S to keep sys.path minimized.R. David Murray2010-12-211-2/+2
| | | | | | | | | Try this again, hopefully the right way this time. Arfrever Taifersar Arahesis reported that test_compileall failed during Gentoo install because it was tyring to write .pyc files to a read-only system directory during test_no_args_compiles_path. Having the tests call python with -S should eliminate the system directories from the path.
* Revert incorrect patch made at the wrong time.R. David Murray2010-12-201-1/+1
|
* Make test_compileall more robust by using -S to keep sys.path minimized.R. David Murray2010-12-201-1/+1
| | | | | | | Arfrever Taifersar Arahesis reported that test_compileall failed during Gentoo install because it was tyring to write .pyc files to a read-only system directory during test_no_args_compiles_path. Having subprocess call python with -S should eliminate the system directories from the path.
* Issue3243 - Support iterable bodies in httplib. Patch contributions by ↵Senthil Kumaran2010-12-192-3/+64
| | | | Xuanji Li and Chris AtLee.
* Fix Issue6791 - Limit the HTTP header readline with _MAXLENGTH. Patch by ↵Senthil Kumaran2010-12-182-0/+34
| | | | Antoine Pitrou
* #5587: add a repr to dict_proxy objects. Patch by David Stanek and Daniel ↵Ezio Melotti2010-12-181-0/+5
| | | | Urban.
* Add subparser aliases for argparse. Resolves issue 9324. Approved by Georg ↵Steven Bethard2010-12-181-2/+49
| | | | for beta2 on the tracker.
* 100% test coverage, better mapping protocol compatibility, some minor bugfixesŁukasz Langa2010-12-171-54/+263
|
* Issue #10711: Remove HTTP 0.9 support from http.client. The `strict`Antoine Pitrou2010-12-171-3/+20
| | | | parameter to HTTPConnection and friends is deprecated.
* Fix Issue9721 - urljoin behavior when the relative url starts with ';'Senthil Kumaran2010-12-171-0/+3
|
* configparser API cleanup: default values now sensible, slightly incompatible.Łukasz Langa2010-12-171-3/+9
| | | | | Backwards compatible alternative values possible as documented. Done by Łukasz Langa, approved by Raymond and Fred.
* #10719: restore messages generated on invalid compileall argsR. David Murray2010-12-161-8/+17
| | | | | | | | Before the introduction of filename arguments to compileall it gave semi useful messages about not being able to 'list' names that weren't valid directories. This fix restores that behavior. In addition to the test for this case, the patch also adds a test for the default behavior of compileall when no arguments are provided, and fixes a bug in one of the previously added tests.
* Issue #10714: Limit length of incoming request in http.server to 65536 bytesAntoine Pitrou2010-12-161-0/+6
| | | | for security reasons. Initial patch by Ross Lagerwall.
* Broken ConfigParser removed, SafeConfigParser renamed to ConfigParser.Łukasz Langa2010-12-161-111/+94
| | | | Life is beatiful once again.
* Make test_threadsignals more lax, and add notesAntoine Pitrou2010-12-151-2/+7
|
* Issue #8844: Regular and recursive lock acquisitions can now be interruptedAntoine Pitrou2010-12-151-5/+115
| | | | by signals on platforms using pthreads. Patch by Reid Kleckner.
* Issue 10534, difflib: tweak doc; test new SequenceMatcher instance ↵Terry Reedy2010-12-151-0/+17
| | | | attributes; avoid unneeded lists of SM.b2j keys and items in .__chain_b. Do not backport.
* TIMEOUT value change in URLTimeout Test. test.support.transient_internet has aSenthil Kumaran2010-12-151-1/+1
| | | | | | socket timeout of 30 when it checks for resource. Explicit overrding (like setting the 10) wont exhibit consistent behavior when tests are outside context manager. So, settting it 30.
* #4236: avoid possible Fatal Error when import is called from __del__R. David Murray2010-12-141-0/+13
| | | | Patch by Simon Cross, crasher test code by Martin von Löwis.
* More comprehensive compileall cli tests, and fixes.R. David Murray2010-12-141-75/+156
|
* SIGCHLD is a more portable name than SIGCLD. (OSX has no SIGCLD)Gregory P. Smith2010-12-141-1/+1
|