summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* #20311: revert changes to 3.3 branch for now until experts have decided how ↵Georg Brandl2014-01-251-11/+0
| | | | to resolve the issue.
* #16042: CVE-2013-1752: smtplib fix for unlimited readline() from socketGeorg Brandl2014-01-252-3/+36
|
* Fix typo.Serhiy Storchaka2014-01-241-1/+1
|
* Issue #20384: Fix the test_tarfile test on Windows.Serhiy Storchaka2014-01-241-1/+6
| | | | On Windows os.open() error message doesn't contain file name.
* Issue 20317: Remove debugging code from contextlibNick Coghlan2014-01-241-10/+48
| | | | | | | - Alex J Burke noticed a debugging raise in the commit that fixed the original bug reported in issue 20317 - this showed that multiple iterations through the affected loop wasn't actually being tested
* Fixed test_user_command on OpenSolaris where floats can have different stringSerhiy Storchaka2014-01-231-9/+20
| | | | representation in Tcl and Python.
* Added test_user_command in test_tcl.Serhiy Storchaka2014-01-231-0/+28
| | | | | It tests the convertion Tcl values to Python values when Tcl calls a command implemented on Python. Currently all values are passed as strings.
* Issue #20317: Don't create a reference loop in ExitStackNick Coghlan2014-01-221-0/+23
|
* Issue #17825: Cursor ^ is correctly positioned for SyntaxError and ↵Florent Xicluna2014-01-221-4/+14
| | | | IndentationError.
* Issue #20246: Fix test failures on FreeBSD. Patch by Ryan Smith-Roberts.Stefan Krah2014-01-211-1/+1
|
* Issue #2382: SyntaxError cursor "^" now is written at correct position in mostSerhiy Storchaka2014-01-212-0/+22
| | | | | cases when multibyte characters are in line (before "^"). This still not works correctly with wide East Asian characters.
* Issue #20311: Try to fix the unit test, use time.monotonic() instead ofVictor Stinner2014-01-211-12/+12
| | | | | | time.perf_counter() Move also the unit test at the end.
* Issue #20311: select.epoll.poll() now rounds the timeout away from zero,Victor Stinner2014-01-211-0/+11
| | | | | instead of rounding towards zero. For example, a timeout of one microsecond is now rounded to one millisecond, instead of being rounded to zero.
* Issue #20262: Warnings are raised now when duplicate names are added in theSerhiy Storchaka2014-01-201-2/+5
| | | | ZIP file or too long ZIP file comment is truncated.
* fix handling of 100-continue status code (closes #18574)Benjamin Peterson2014-01-191-2/+4
|
* Issue #20270: urllib.urlparse now supports empty ports.Serhiy Storchaka2014-01-181-10/+28
|
* Issue #20243: TarFile no longer raise ReadError when opened in write mode.Serhiy Storchaka2014-01-181-0/+16
|
* Issue #20238: TarFile opened with external fileobj and "w:gz" mode didn'tSerhiy Storchaka2014-01-181-0/+6
| | | | write complete output on close.
* Issue #20245: The open functions in the tarfile module now correctly handle ↵Serhiy Storchaka2014-01-181-0/+14
| | | | empty mode.
* sort os.listxattr results before comparing it to avoid depending on theGregory P. Smith2014-01-171-1/+1
| | | | ordering of the directory information in the underlying filesystem.
* Issue #19936: Remove executable bits from C source files and several forgottenSerhiy Storchaka2014-01-161-0/+0
| | | | test files.
* 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.