Commit Graph

13065 Commits

Author SHA1 Message Date
Serhiy Storchaka 528bed8e4a Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref tests. 2014-02-08 14:49:55 +02:00
Serhiy Storchaka 708a5ea964 Issue #20546: Use specific asserts in int tests. 2014-02-08 14:28:20 +02:00
Serhiy Storchaka 76249ea4a7 Issue #20532: Tests which use _testcapi now are marked as CPython only. 2014-02-07 10:06:05 +02:00
Serhiy Storchaka 6a036793b6 Issue #20520: Fixed readline test in test_codecs. 2014-02-06 09:26:32 +02:00
Serhiy Storchaka cfc2c7bb86 Issue #19920: Added tests for TarFile.list(). Based on patch by Vajrasky Kok. 2014-02-05 20:55:13 +02:00
Serhiy Storchaka dd9d64eb53 Issue #20498: Fixed io.StringIO tests for newline='\n'. Added new tests. 2014-02-05 13:41:38 +02:00
Serhiy Storchaka 90ecc00183 Skip expr* tests for large integers for Tcl <8.5.
The '**' operator is available only since 8.5 and in any case such large
integers are not supported on Tcl <8.5.
2014-02-03 22:30:22 +02:00
Antoine Pitrou f581411255 Issue #20426: When passing the re.DEBUG flag, re.compile() displays the debug output every time it is called, regardless of the compilation cache. 2014-02-03 20:59:59 +01:00
Serhiy Storchaka ccffb25c54 Issue #20368: The null character now correctly passed from Tcl to Python (in
unicode strings only).  Improved error handling in variables-related commands.
2014-02-03 21:23:46 +02:00
Serhiy Storchaka d2eff237a6 Issue #20368: Add tests for Tkinter methods exprstring(), exprdouble(),
exprlong() and exprboolean().
2014-02-03 20:41:04 +02:00
Antoine Pitrou c06634acfc Issue #20435: Fix _pyio.StringIO.getvalue() to take into account newline translation settings. 2014-02-02 23:37:29 +01:00
Serhiy Storchaka 15b67d7d5b Issue #19320: Fixed split/splitlist tests in test_tcl for Tcl 8.5.0-8.5.5. 2014-02-02 23:04:06 +02:00
Ezio Melotti 5a88853bdc #20288: fix handling of invalid numeric charrefs in HTMLParser. 2014-02-01 21:20:22 +02:00
Serhiy Storchaka 47cb38cdcc Backported a test for lone surrogates support in io.StringIO. 2014-01-29 11:49:13 +02:00
Gregory P. Smith 9ca520a09c Remove unneeded use of globals() and locals() in test on imports
introduced with the issue19081 tests.
2014-01-28 00:29:46 -08:00
Gregory P. Smith 1a47955255 Refactor the new test for issue19081 to exec import statements into a
test_ns dict instead of the actual globals() and locals().  Suggested
after review by Thomas Wouters.
2014-01-27 22:06:51 -08:00
Serhiy Storchaka 31f5121275 Issue #19456: ntpath.join() now joins relative paths correctly when a drive
is present.
2014-01-27 23:14:51 +02:00
Gregory P. Smith 027ab39014 Issue #19081: Remove the zipimporter.files reference as the zip TOC
caches are module global in the zip_directory_cache. When it is
updated due to a changed zip file, all zipimporter instances need to
see the same updates TOC cache.  This fixes the bug for the overlooked
submodule import case from the earlier round of changes.  Includes
tests that would fail otherwise.

It also refactors zipimporter_init in the process to make it a bit
easier to read and understand.  Less reuse of the same variable for
multiple purposes and the local path buffer is malloc'ed instead
of consuming a large MAXPATHLEN+2 chunk stack space.
2014-01-27 00:15:10 -08:00
Serhiy Storchaka 30d68c66e3 Issue #19990: Added tests for the imghdr module.
Based on patch by Claudiu Popa.
2014-01-26 23:48:20 +02:00
Serhiy Storchaka 2403a787b9 Issue #8260: The read(), readline() and readlines() methods of
codecs.StreamReader returned incomplete data when were called after
readline() or read(size).  Based on patch by Amaury Forgeot d'Arc.
2014-01-26 19:20:24 +02:00
Serhiy Storchaka eb7ef94166 Third attempt to fix test_user_command on OpenSolaris. 2014-01-23 16:08:35 +02:00
Serhiy Storchaka dc97667254 Other attempt to fix test_user_command on OpenSolaris. 2014-01-23 14:38:44 +02:00
Serhiy Storchaka 83515ecf42 Try to fix test_user_command on OpenSolaris where floats can have different
string representation in Tcl and Python.
2014-01-23 11:03:02 +02:00
Serhiy Storchaka 29d8e856b4 Added test_user_command in test_tcl.
It tests the convertion Tcl values to Python values when Tcl calls a command
implemented on Python. Currently all values are passed as strings.
2014-01-23 09:42:46 +02:00
Stefan Krah 70fdd79c92 Fix test failures --without-threads. 2014-01-22 13:18:09 +01:00
Florent Xicluna edfd9addf6 Issue #17825: Cursor ^ is correctly positioned for SyntaxError and IndentationError. 2014-01-22 01:33:59 +01:00
Stefan Krah 70df667dfe Issue #20246: Fix test failures on FreeBSD. Patch by Ryan Smith-Roberts. 2014-01-21 23:05:52 +01:00
Serhiy Storchaka 49259359ee Issue #20262: Warnings are raised now when duplicate names are added in the
ZIP file or too long ZIP file comment is truncated.
2014-01-20 21:57:09 +02:00
Serhiy Storchaka 326b5ab05a Issue #20270: urllib and urlparse now support empty ports. 2014-01-18 18:30:09 +02:00
Serhiy Storchaka 7a278da4ee Issue #20243: TarFile no longer raise ReadError when opened in write mode. 2014-01-18 16:14:00 +02:00
Serhiy Storchaka cdf1ebd8fe Backported test for issue #20238. 2014-01-18 15:54:32 +02:00
Serhiy Storchaka 75ba21a77d Issue #20245: The open functions in the tarfile module now correctly handle empty mode. 2014-01-18 15:35:19 +02:00
Serhiy Storchaka af080876dc Issue #20086: Restored the use of locale-independing mapping instead of
locale-depending str.lower() in locale.normalize().
2014-01-17 09:27:56 +02:00
Serhiy Storchaka e0ed2d75c8 Issue #19936: Added executable bits or shebang lines to Python scripts which
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.
2014-01-16 18:59:17 +02:00
Benjamin Peterson d93d6332ee add test for #20251 2014-01-14 00:27:42 -05:00
Benjamin Peterson 28cf368c1b complain when nbytes > buflen to fix possible buffer overflow (closes #20246) 2014-01-13 22:59:38 -05:00
Serhiy Storchaka d804f53679 Backported test for the open of non-existent tarfile. 2014-01-13 19:08:51 +02:00
Serhiy Storchaka e198692c39 Issue #20138: Backport tests for handling non-ASCII URLs in the
wsgiref.application_uri() and wsgiref.request_uri() functions.
2014-01-12 12:11:47 +02:00
Senthil Kumaran fa6cecbc68 Adding test coverage for cgi.FieldStorage based on the scenario mentioned in issue #19097 2014-01-11 22:16:55 -08:00
Serhiy Storchaka ee105dcc62 Fixed test_tempfilepager in test_pydoc on Windows.
Filename such as r'c:\users\db3l\appdata\local\temp\tmph3vkvf' contains '\t'
which is interpreted by ast.literal_eval() as a tabulation.
2014-01-10 22:43:03 +02:00
Serhiy Storchaka 664ebb03af Issue #20086: Output more details when test_getsetlocale_issue1813 is failed. 2014-01-10 15:34:51 +02:00
Serhiy Storchaka 0f11d0f778 Issue #19804: The test_find_mac test in test_uuid is now skipped if the
ifconfig executable is not available.
2014-01-10 15:05:27 +02:00
Serhiy Storchaka c9da0893d3 Issue #19886: Use better estimated memory requirements for bigmem tests.
Incorrect requirements can cause memory swapping.
2014-01-10 13:36:56 +02:00
Serhiy Storchaka 9f8621fa7d Issue #13107: argparse and optparse no longer raises an exception when output
a help on environment with too small COLUMNS.  Based on patch by
Elazar Gershuni.
2014-01-09 23:13:48 +02:00
Antoine Pitrou 3b2afbbf88 Issue #20207: Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly asked for. 2014-01-09 19:52:12 +01:00
Benjamin Peterson 27b029bd00 clear zip stat cache after each ref leak run 2014-01-09 11:10:30 -06:00
Gregory P. Smith f5dee4ddbd normalize whitespace from prior issue19081 fix commit. 2014-01-06 09:51:32 -08:00
Gregory P. Smith b48c5d5107 Fixes issue19081: When a zipimport .zip file in sys.path being imported
from is modified during the lifetime of the Python process after
zipimport has already opened and cached the zip's table of contents
it now fstat's the file after opening it upon every attempt to access
anything within and will re-read the table of contents if the .zip file
inode, size or mtime have changed.

It would've been nicer to hold any .zip file used by zipimport open for the
duration of the process but that would be more invasive and add an additional
open file descriptor to all zipimport using processes.  It also would likely
not fix the problem on Windows due to different filesystem semantics.
2014-01-06 09:46:46 -08:00
R David Murray 984f630f0a #1065986: Make pydoc handle unicode strings.
Patch by Akira Kitada.
2014-01-05 12:35:59 -05:00
R David Murray 1d2ef64df6 #16039/#20118: temporarily skip failing imaplib SSL test.
The fix the test is testing prevents a DOS attack, and the failure
mode will also prevent the DOS attack, so for now skip the test.
Either the test or the code does need fixing, however.
2014-01-03 17:26:21 -05:00