summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-1643-58/+0
| | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang line to use python3 executable in the unittestgui script.
* add test for #20251Benjamin Peterson2014-01-141-0/+7
|
* merge 3.2 (#20246)Benjamin Peterson2014-01-141-0/+8
|\
| * complain when nbytes > buflen to fix possible buffer overflow (closes #20246)Benjamin Peterson2014-01-141-0/+8
| |
* | Issue #20242: Fixed basicConfig() format strings for the alternative ↵Vinay Sajip2014-01-131-0/+16
| | | | | | | | formatting styles.
* | #20206, #5803: more efficient algorithm that doesn't truncate output.R David Murray2014-01-131-0/+5
| | | | | | | | | | | | | | | | This fixes an edge case (20206) where if the input ended in a character needing encoding but there was no newline on the string, the last byte of the encoded character would be dropped. The fix is to use a more efficient algorithm, provided by Serhiy Storchaka (5803), that does not have the bug.
* | Test the open of non-exitent tarfile in all modes.Serhiy Storchaka2014-01-131-5/+7
| |
* | Issue #20138: The wsgiref.application_uri() and wsgiref.request_uri()Serhiy Storchaka2014-01-121-2/+6
| | | | | | | | functions now conform to PEP 3333 when handle non-ASCII URLs.
* | Issue #19092 - Raise a correct exception when cgi.FieldStorage is given anSenthil Kumaran2014-01-121-0/+7
| | | | | | | | | | invalid file-obj. Also use __bool__ to determine the bool of the FieldStorage object.
* | Issue #19804: The test_find_mac test in test_uuid is now skipped if theSerhiy Storchaka2014-01-101-0/+6
| | | | | | | | ifconfig executable is not available.
* | Issue #19886: Use better estimated memory requirements for bigmem tests.Serhiy Storchaka2014-01-105-28/+18
| | | | | | | | Incorrect requirements can cause memory swapping.
* | Issue #13107: argparse and optparse no longer raises an exception when outputSerhiy Storchaka2014-01-092-0/+89
| | | | | | | | | | a help on environment with too small COLUMNS. Based on patch by Elazar Gershuni.
* | Try to fix test_ssl failures on some buildbotsAntoine Pitrou2014-01-091-2/+2
| |
* | Issue #20207: Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly ↵Antoine Pitrou2014-01-091-6/+4
| | | | | | | | asked for.
* | Do not reset the line number because we already set file position to correctSerhiy Storchaka2014-01-091-0/+4
| | | | | | | | | | | | value. (fixes error in patch for issue #18960)
* | clear zip stat cache after each ref leak runBenjamin Peterson2014-01-092-9/+7
| |
* | Issue #18960: Fix bugs with Python source code encoding in the second line.Serhiy Storchaka2014-01-091-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * The first line of Python script could be executed twice when the source encoding (not equal to 'utf-8') was specified on the second line. * Now the source encoding declaration on the second line isn't effective if the first line contains anything except a comment. * As a consequence, 'python -x' works now again with files with the source encoding declarations specified on the second file, and can be used again to make Python batch files on Windows. * The tokenize module now ignore the source encoding declaration on the second line if the first line contains anything except a comment. * IDLE now ignores the source encoding declaration on the second line if the first line contains anything except a comment. * 2to3 and the findnocoding.py script now ignore the source encoding declaration on the second line if the first line contains anything except a comment.
* | Issue #20078: Reading malformed zipfiles no longer hangs with 100% CPUSerhiy Storchaka2014-01-091-0/+31
| | | | | | | | consumption.
* | Issue #20113: Fix test_posix on OpenIndianaVictor Stinner2014-01-081-2/+16
| |
* | Issue #20113: os.readv() and os.writev() now raise an OSError exception onVictor Stinner2014-01-082-1/+18
| | | | | | | | error instead of returning -1.
* | Fixes Issue #19081: When a zipimport .zip file in sys.path being imported fromGregory P. Smith2014-01-081-19/+85
| | | | | | | | | | | | is modified during the lifetime of the Python process after zipimport has already cached the zip's table of contents we detect this and recover rather than read bad data from the .zip (causing odd import errors).
* | Issue #20101: Allow test_monotonic to pass on Windows machines on whichZachary Ware2014-01-021-1/+2
| | | | | | | | | | | | time.get_clock_info('monotonic').resolution == 0.015600099999999999 This is just a workaround pending a real resolution to #20101.
* | Issue #18829: Add tests for the csv module for invalid characters (delimiter,Victor Stinner2014-01-021-0/+13
| | | | | | | | escapechar, quotechar)
* | Issue #20055: Fix test_shutil under Windows with symlink privileges held.Antoine Pitrou2014-01-011-13/+19
| | | | | | | | Patch by Vajrasky Kok.
* | Backporing the fix from Issue #12692Senthil Kumaran2013-12-291-0/+1
| |
* | Issue #19422: Explicitly disallow non-SOCK_STREAM sockets in the ssl module, ↵Antoine Pitrou2013-12-281-0/+12
| | | | | | | | rather than silently let them emit clear text data.
* | #18116: backport fix to 3.3 since real-world failure mode demonstrated.R David Murray2013-12-272-1/+155
| | | | | | | | | | | | | | | | | | | | In issue 20074 it was pointed out that getpass would fail with a traceback if stdin was, for example /dev/null, which is a non-unlikely scenario. Also backported the tests from issue 17484 as modified by issue 18116. (What I really did was copy getpass.py and test_getpass.py from their state on tip as of 17bd04fbf3d3).
* | Issue #20027: Fixed locale aliases for devanagari locales.Serhiy Storchaka2013-12-261-0/+14
| |
* | Issue #19938: Re-enabled test_bug_1333982 in test_dis, which had beenZachary Ware2013-12-261-33/+30
| | | | | | | | disabled since 3.0 due to the changes in listcomp handling.
* | Issue #19320: test_tcl no longer fails when wantobjects is false.Serhiy Storchaka2013-12-251-13/+29
| |
* | update Barry's email (#19563)Benjamin Peterson2013-12-236-7/+7
| |
* | Fix DeprecationWarnings in test suiteAntoine Pitrou2013-12-212-10/+10
| |
* | Issue #18879: When a method is looked up on a temporary file, avoid closing ↵Antoine Pitrou2013-12-211-0/+17
| | | | | | | | the file before the method is possibly called.
* | Update test.outstanding_bugs.pyZachary Ware2013-12-201-72/+2
| |
* | Don't use sebTest() in tests for issue #5815.Serhiy Storchaka2013-12-191-2/+1
| |
* | Issue #19683: Removed empty tests from test_minidom. Patch by Ajitesh Gupta.Zachary Ware2013-12-191-65/+0
| |
* | Issue #5815: Fixed support for locales with modifiers. Fixed support forSerhiy Storchaka2013-12-191-0/+58
| | | | | | | | locale encodings with hyphens.
* | Issue #20025: ssl.RAND_bytes() and ssl.RAND_pseudo_bytes() now raise aVictor Stinner2013-12-191-0/+4
| | | | | | | | ValueError if num is negative (instead of raising a SystemError).
* | Issue #18829: csv.Dialect() now checks type for delimiter, escapechar andSerhiy Storchaka2013-12-191-5/+39
| | | | | | | | quotechar fields. Original patch by Vajrasky Kok.
* | Issue #20006: Fix sporadic failures in test_weakset.Antoine Pitrou2013-12-171-1/+6
| |
* | Revert misled test change in f189da5bda26.Antoine Pitrou2013-12-171-1/+0
| |
* | Issue #20007: HTTPResponse.read(0) no more prematurely closes connection.Serhiy Storchaka2013-12-171-0/+3
| | | | | | | | Original patch by Simon Sapin.
* | Close #19999: tolerate coarse time when testing time.monotonic() on veryVictor Stinner2013-12-161-1/+1
| | | | | | | | busy/slow buildbot
* | Issue #19919: Fix flacky SSL test. connect_ex() sometimes returnsChristian Heimes2013-12-161-2/+4
| | | | | | | | EWOULDBLOCK on Windows or VMs hosted on Windows.
* | Issue #19987: Re-write test_alias_fallback in test_winsound to have twoZachary Ware2013-12-161-7/+8
| | | | | | | | | | | | acceptable outcomes: success or RuntimeError. Without being able to actually hear whether a sound was played, either one could be right, but any other error would be a failure.
* | Merge headsSerhiy Storchaka2013-12-161-0/+1
|\ \
| * | Issue #17919: add missing import of USHRT_MAXChristian Heimes2013-12-161-0/+1
| | |
* | | Issue #19912: Fixed numerous bugs in ntpath.splitunc().Serhiy Storchaka2013-12-161-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | * splitunc() no more return illegal result for paths with redundant slashes. * splitunc() now correctly processes the 'İ' character (U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE). * Deprecation warnings now emitted for every use of splitunc(). * Added tests for splitunc().
* | | Issue #19911: ntpath.splitdrive() now correctly processes the 'İ' characterSerhiy Storchaka2013-12-161-0/+3
|/ / | | | | | | (U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
* | #19532: make compileall with no file/dir args respect -f and -q.R David Murray2013-12-161-0/+23
| | | | | | | | Patch by Vajrasky Kok.