Jason R. Coombs
77796e4f7a
Fix failing test incorrectly merged in b1244046f37a
2013-11-10 20:28:18 -05:00
Jason R. Coombs
0048ae0cc6
Merge with 3.3 for Issue #19544 and Issue #6286 . Merge is untested. I was unable to test due to bab0cbf86835.
2013-11-10 18:59:44 -05:00
Jason R. Coombs
375dc9b8b4
Merge with 3.3 for Issue #19544 and Issue #7457
2013-11-10 18:21:49 -05:00
Serhiy Storchaka
711e91b283
Issue #16685 : Added support for any bytes-like objects in the audioop module.
...
Removed support for strings.
2013-11-10 21:44:36 +02:00
Serhiy Storchaka
74af9d3cc4
Merge heads
2013-11-10 21:05:38 +02:00
Serhiy Storchaka
81895f8ee3
Issue #19261 : Added support for writing 24-bit samples in the sunau module.
2013-11-10 21:02:53 +02:00
Jason R. Coombs
72cd8b9eda
Merge
2013-11-10 14:02:40 -05:00
Jason R. Coombs
6bdc498734
Normalize whitespace
2013-11-10 14:02:04 -05:00
Andrew Kuchling
ad8156e9b2
#1097797 : Add CP273 codec, and exercise it in the test suite
2013-11-10 13:44:30 -05:00
Serhiy Storchaka
29828a6fa9
Issue #1575020 : Fixed support of 24-bit wave files on big-endian platforms.
2013-11-09 23:15:52 +02:00
Serhiy Storchaka
a44372fd0b
Issue #1575020 : Fixed support of 24-bit wave files on big-endian platforms.
2013-11-09 23:12:06 +02:00
Serhiy Storchaka
35ac05eb4c
Fix Tkinter tests on Tk 8.5 with patchlevel < 8.5.11 (issue #19085 ).
2013-11-09 21:17:37 +02:00
Serhiy Storchaka
affb9b255b
Fix Tkinter tests on Tk 8.5 with patchlevel < 8.5.11 (issue #19085 ).
2013-11-09 21:16:19 +02:00
Brett Cannon
9e5aba29e2
remove dead import
2013-11-08 14:27:42 -05:00
Brett Cannon
9ea8eda127
Issue #16803 : test.test_importlib.source now tests frozen and source code
2013-11-08 14:25:37 -05:00
Charles-François Natali
3a4586a9f9
Issue #18923 : Update subprocess to use the new selectors module.
2013-11-08 19:56:59 +01:00
Brett Cannon
2ce6c44ae4
Simplify test.test_importlib.__main__
2013-11-08 13:35:34 -05:00
Brett Cannon
330f71b617
Issue #16803 : test.test_importlib.import_ now tests frozen and source code
2013-11-08 13:34:59 -05:00
Brett Cannon
a3c6963467
Issue #16803 : test.test_importlib.frozen now runs both frozen and source code
2013-11-08 11:10:41 -05:00
Guido van Rossum
d0293596b8
Remove redundant test_selectors.py from test_asyncio.
2013-11-07 09:25:36 -08:00
Ezio Melotti
a5b9599538
#17080 : improve error message of float/complex when the wrong type is passed.
2013-11-07 19:18:34 +02:00
Guido van Rossum
d0786a1a50
Optimize BaseSelector.modify(). Patch by Arnaud Faure.
2013-11-07 08:39:28 -08:00
Ezio Melotti
b7038817fe
#19480 : merge with 3.3.
2013-11-07 18:35:27 +02:00
Ezio Melotti
7165d8b9ba
#19480 : HTMLParser now accepts all valid start-tag names as defined by the HTML5 standard.
2013-11-07 18:33:24 +02:00
Guido van Rossum
0b69fbc642
asyncio: Add close() back to Unix selector event loop, to remove all signal handlers. Should fix buildbot issues.
2013-11-06 20:25:50 -08:00
Nick Coghlan
95887b7e5b
Remove incorrect comment from dis tests
2013-11-06 22:17:39 +10:00
Nick Coghlan
90b8e7d2bc
Close #19378 : address flaws in the new dis module APIs
...
- confusing line_offset parameter -> first_line parameter
- systematically test and fix new file parameter
- remove redundant Bytecode.show_info() API
- rename Bytecode.display_code() to Bytecode.dis() and have it
return the multi-line string rather than printing it directly
- eliminated some not-so-helpful helpers from the bytecode_helper
test support module
Also fixed a longstanding defect (worked around in the test suite)
where lines emitted by the dis module could include trailing white
space. That no longer happens, allowing the formatting tests to be
simplified to use plain string comparisons.
2013-11-06 22:08:36 +10:00
Serhiy Storchaka
24f125871b
Revert wrong change in previous commit (issue #19085 ).
2013-11-05 22:02:17 +02:00
Serhiy Storchaka
7c934da0ff
Revert wrong change in previous commit (issue #19085 ).
2013-11-05 22:01:46 +02:00
Serhiy Storchaka
96c01686aa
Fix test_insertwidth Tkinter tests on Tk 8.5 with patchlevel >= 8.5.12 (issue #19085 ).
2013-11-05 21:06:05 +02:00
Serhiy Storchaka
8f9f5870d3
Fix test_insertwidth Tkinter tests on Tk 8.5 with patchlevel >= 8.5.12 (issue #19085 ).
2013-11-05 21:05:10 +02:00
Serhiy Storchaka
17972a746a
Fix typo in tkinter tests (issue #19085 ).
2013-11-05 20:18:17 +02:00
Serhiy Storchaka
98555f3ac7
Fix typo in tkinter tests (issue #19085 ).
2013-11-05 20:17:50 +02:00
Tim Golden
607981402c
Issue #10197 Tweak docs for subprocess.getstatusoutput and align the documentation, the module docstring, and the function docstring.
2013-11-05 12:57:25 +00:00
Terry Jan Reedy
c1bd2fef8b
Merge with 3.3
2013-11-04 21:44:17 -05:00
Terry Jan Reedy
5c81164077
Issue #19397 : test_pydoc now works with -S (help not added to builtins).
...
Patch by Serhiy Storchaka and Vajrasky Kok.
2013-11-04 21:43:26 -05:00
Guido van Rossum
0eaa5ac9b5
asyncio: Refactor SIGCHLD handling. By Anthony Baire.
2013-11-04 15:50:46 -08:00
Guido van Rossum
ccea08462b
asyncio: Locks improvements by Arnaud Faure: better repr(), change Conditio\
...
n structure.
2013-11-04 13:18:19 -08:00
Serhiy Storchaka
b58d4a3209
Issue #19085 : Fix running test_ttk_textonly on displayless host.
2013-11-04 23:06:51 +02:00
Serhiy Storchaka
2028e01313
Issue #19085 : Fix running test_ttk_textonly on displayless host.
2013-11-04 23:05:37 +02:00
Serhiy Storchaka
20acaa7a0a
Issue #19085 : Fix Tkinter tests on Tk 8.5 with patchlevel < 8.5.12.
2013-11-04 22:11:43 +02:00
Serhiy Storchaka
8d8599ce0c
Issue #19085 : Fix Tkinter tests on Tk 8.5 with patchlevel < 8.5.12.
2013-11-04 22:11:12 +02:00
Nick Coghlan
3daaf5f89d
Fix functools.partialmethod docs and __all__
2013-11-04 23:32:16 +10:00
Serhiy Storchaka
43767638a9
Issue #18702 : All skipped tests now reported as skipped.
2013-11-03 21:31:38 +02:00
Serhiy Storchaka
7908068627
Issue #18702 : All skipped tests now reported as skipped.
2013-11-03 21:31:18 +02:00
R David Murray
af734963d1
Merge #19485 : clarify get_param example.
2013-11-03 12:23:51 -05:00
R David Murray
0de4d3e3eb
#19485 : clarify get_param example.
...
Patch by Vajrasky Kok.
2013-11-03 12:23:23 -05:00
Serhiy Storchaka
9fe43f5ff3
Issue #19085 : Fixed pixels rounding for last Tk patchlevels.
2013-11-03 18:25:17 +02:00
Serhiy Storchaka
b2817327b9
Issue #19085 : Fixed pixels rounding for last Tk patchlevels.
2013-11-03 18:24:31 +02:00
Tim Golden
eb6392b0cb
Issue #10197 : merge heads
2013-11-03 14:21:29 +00:00
Tim Golden
49667f09a7
Issue #10197 : merge heads
2013-11-03 14:20:23 +00:00
Tim Golden
ab7211f278
Issue #10197 Rework subprocess.get[status]output to use subprocess functionality and thus to work on Windows. Patch by Nick Coghlan.
2013-11-03 12:55:51 +00:00
Tim Golden
e004175c56
Issue #10197 Rework subprocess.get[status]output to use subprocess functionality and thus to work on Windows. Patch by Nick Coghlan.
2013-11-03 12:53:17 +00:00
Serhiy Storchaka
4babb9111f
Issue #6157 : Fixed tkinter.Text.debug(). tkinter.Text.bbox() now raises
...
TypeError instead of TclError on wrong number of arguments. Original patch
by Guilherme Polo.
2013-11-03 14:34:25 +02:00
Serhiy Storchaka
0b9e815d8d
Issue #6157 : Fixed tkinter.Text.debug(). Original patch by Guilherme Polo.
2013-11-03 14:29:35 +02:00
Serhiy Storchaka
0de5362a40
Issue #6160 : The bbox() method of tkinter.Spinbox now returns a tuple of
...
integers instead of a string. Based on patch by Guilherme Polo.
2013-11-03 14:15:00 +02:00
Serhiy Storchaka
2849e0dfb7
Issue #6160 : The bbox() method of tkinter.Spinbox now returns a tuple of
...
integers instead of a string. Based on patch by Guilherme Polo.
2013-11-03 14:13:34 +02:00
Nick Coghlan
8e113b418d
Close #19403 : make contextlib.redirect_stdout reentrant
2013-11-03 17:00:51 +10:00
Nick Coghlan
4e641df09b
Close #19439 : execute embedding tests on Windows
...
Patch by Zachary Ware
2013-11-03 16:54:46 +10:00
Nick Coghlan
f4cb48a72b
Issue #4331 : Added functools.partialmethod
...
Initial patch by Alon Horev
2013-11-03 16:41:46 +10:00
Richard Oudkerk
df0b14dad2
Merge.
2013-11-02 17:08:01 +00:00
Richard Oudkerk
e943697750
Issue #19478 : Make choice of semaphore prefix more flexible.
2013-11-02 17:05:07 +00:00
Jason R. Coombs
e71fb28519
Merge with 3.3 for Issue #19286 .
2013-11-02 13:04:51 -04:00
Jason R. Coombs
ca9242f4f9
Merge with 3.2 for Issue #19286 .
2013-11-02 13:01:46 -04:00
Serhiy Storchaka
0aade6258c
Merge heads
2013-11-02 18:53:06 +02:00
Serhiy Storchaka
9788497e4b
Issue #19085 : Fixed some Tkinter tests on Windows.
2013-11-02 18:50:42 +02:00
Richard Oudkerk
af630c5885
Merge.
2013-11-02 16:47:08 +00:00
Richard Oudkerk
b8ec1e35a9
Relax timeout test.
2013-11-02 16:46:32 +00:00
Richard Oudkerk
2902b6d17a
Relax test for process return code on Windows.
2013-11-02 16:38:58 +00:00
Ezio Melotti
1943c8a112
Merge test_htmlparser changes from 3.3.
2013-11-02 17:50:02 +02:00
Ezio Melotti
5028f4d461
Use unittest.main() in test_htmlparser.
2013-11-02 17:49:08 +02:00
Ezio Melotti
88ebfb129b
#15114 : The html.parser module now raises a DeprecationWarning when the strict argument of HTMLParser or the HTMLParser.error method are used.
2013-11-02 17:08:24 +02:00
Jason R. Coombs
bd26d86d74
Issue #19286 : [distutils] Only match files in build_py.find_data_files.
2013-11-02 11:07:35 -04:00
Jason R. Coombs
93912b9e54
Issue #19286 : Adding test demonstrating the failure when a directory is found in the package_data globs.
2013-11-02 11:29:33 -04:00
Serhiy Storchaka
28f0beaff6
Issue #19085 . Try to fix tkinter tests on Windows.
2013-11-02 16:41:23 +02:00
Serhiy Storchaka
bf30c9f01a
Issue #10734 : Fix and re-enable test_ttk test_heading_callback.
2013-11-02 10:54:58 +02:00
Serhiy Storchaka
007c0477f5
Issue #10734 : Fix and re-enable test_ttk test_heading_callback.
2013-11-02 10:54:31 +02:00
Serhiy Storchaka
d58972c297
Merge heads
2013-11-02 10:47:57 +02:00
Serhiy Storchaka
b2564ce085
Issue #19085 : Added basic tests for all tkinter widget options.
2013-11-02 10:44:55 +02:00
Serhiy Storchaka
758c521ea8
Issue #19085 : Added basic tests for all tkinter widget options.
2013-11-02 10:41:48 +02:00
Guido van Rossum
05c511f1ca
asyncio: Slight rearrangement of tests for server_hostname=...
2013-11-01 14:24:28 -07:00
Guido van Rossum
28dff0d823
asyncio: Better-looking errors when ssl module cannot be imported. In part by Arnaud Faure.
2013-11-01 14:22:30 -07:00
Guido van Rossum
a8d630a6e6
asyncio: Various style nits.
2013-11-01 14:20:55 -07:00
Guido van Rossum
3a703921a6
asyncio: Log a warning when eof_received() returns true and using ssl.
2013-11-01 14:19:35 -07:00
Guido van Rossum
e3f52ef067
asyncio: Document EventLoop.close().
2013-11-01 14:19:04 -07:00
Guido van Rossum
2b57016458
asyncio: Refactor ssl transport ready loop (Nikolay Kim).
2013-11-01 14:18:02 -07:00
Guido van Rossum
21c85a7124
asyncio: Add server_hostname as create_connection() argument, with secure default.
2013-11-01 14:16:54 -07:00
Guido van Rossum
2b430b8720
asyncio: Fold some long lines.
2013-11-01 14:13:30 -07:00
Guido van Rossum
3317a13253
asyncio: Pause accepting whenever accept() returns certain errors. Fixes asyncio issue #78 .
2013-11-01 14:12:50 -07:00
Brett Cannon
2b8fc303ad
Abstract out stat calls in importlib for easier experimentation.
2013-11-01 14:04:24 -04:00
Brett Cannon
f6901c8baa
Issue #19410 : Put back in special-casing of '' for
...
importlib.machinery.FileFinder.
While originally moved to stop special-casing '' as PathFinder farther
up the typical call chain now uses the cwd in the instance of '', it
was deemed an unnecessary risk to breaking subclasses of FileFinder to
take the special-casing out.
2013-11-01 10:37:57 -04:00
Eric Snow
4ae17f50ed
Issue #19413 : Disregard duplicate namespace portions during reload tests.
2013-10-31 23:44:31 -06:00
Eric Snow
cdf601281f
Issue #19413 : Restore pre-3.3 reload() semantics of re-finding modules.
2013-10-31 22:22:15 -06:00
Vinay Sajip
6ec518bd8e
Closes #19349 : Merged fix from 3.3.
2013-10-31 18:44:48 +00:00
Vinay Sajip
0e6c66d48a
Issue #19349 : Corrected error message.
2013-10-31 18:44:04 +00:00
Guido van Rossum
61a2ced1c5
Close resources owned by subclass before calling super().close().
2013-10-31 11:01:40 -07:00
Guido van Rossum
0016e1d8ba
asyncio: Add new file (forgotten).
2013-10-30 14:56:49 -07:00
Guido van Rossum
5969128a86
asyncio: Add support for running subprocesses on Windows with the IOCP event loop (Richard Oudkerk).
2013-10-30 14:52:03 -07:00
Guido van Rossum
90fb914b4b
asyncio: Make the IOCP proactor support "waitable" handles (Richard Oudkerk).
2013-10-30 14:44:05 -07:00
Guido van Rossum
ec7922cb3e
asyncio: Update some comments.
2013-10-30 14:38:05 -07:00
Guido van Rossum
1f683bbe71
asyncio: When not closing the connection after receiving EOF, still remove the read handler.
2013-10-30 14:36:58 -07:00
Charles-François Natali
4574b49703
Issue #19172 : Add a get_map() method to selectors.
2013-10-30 20:31:04 +01:00
Benjamin Peterson
c99874da83
merge 3.3 ( #19435 )
2013-10-30 12:51:16 -04:00
Benjamin Peterson
a50f89954d
merge 3.2 ( #19435 )
2013-10-30 12:50:18 -04:00
Benjamin Peterson
35aca89617
merge 3.1 ( #19435 )
2013-10-30 12:48:59 -04:00
Benjamin Peterson
04e9de40f3
use the collapsed path in the run_cgi method ( closes #19435 )
2013-10-30 12:43:09 -04:00
Victor Stinner
c0e07a3ea0
Issue #19424 : Fix test_warnings for locale encoding unable to encode
...
"\xe9\u20ac" characters
2013-10-29 23:58:05 +01:00
Victor Stinner
a4c704b260
Issue #19424 : Fix the warnings module to accept filename containing surrogate
...
characters.
2013-10-29 23:43:41 +01:00
Georg Brandl
b3acaccf27
Transplant of rev 544b654d000c: directory traversal attack in CGIHttpRequestHandler.
2013-11-11 06:10:23 +01:00
Richard Oudkerk
e90cedb711
Issue #19425 -- a pickling error should not cause pool to hang.
2013-10-28 23:11:58 +00:00
Richard Oudkerk
33aaa73cad
Merge.
2013-10-28 23:23:04 +00:00
Nadeem Vawda
e6514f533e
#19395 : Raise exception when pickling a (BZ2|LZMA)(Compressor|Decompressor).
...
The underlying C libraries provide no mechanism for serializing compressor and
decompressor objects, so actually pickling these classes is impractical.
Previously, these objects would be pickled without error, but attempting to use
a deserialized instance would segfault the interpreter.
2013-10-28 21:41:24 +01:00
Nadeem Vawda
3797065ac5
#19395 : Raise exception when pickling a (BZ2|LZMA)(Compressor|Decompressor).
...
The underlying C libraries provide no mechanism for serializing compressor and
decompressor objects, so actually pickling these classes is impractical.
Previously, these objects would be pickled without error, but attempting to use
a deserialized instance would segfault the interpreter.
2013-10-28 21:35:23 +01:00
Victor Stinner
d1b48998e5
Issue #19421 : add an unit test for warnings.warn() during finalization
2013-10-28 19:16:21 +01:00
Serhiy Storchaka
8797dcd9d5
Fixed merge test for Tcl/Tk <8.5 (issue #18964 ).
2013-10-27 12:38:01 +02:00
Georg Brandl
78abc9dcc2
Skip overzealous test for existence of the online license.html for pre-release versions.
2013-10-27 09:41:57 +01:00
Georg Brandl
2d34f41bee
Bump to 3.3.3rc1.
2013-10-27 09:22:59 +01:00
Georg Brandl
c9d597a46d
Update pydoc topics.
2013-10-27 09:08:16 +01:00
Georg Brandl
045ee06ae9
merge
2013-10-27 07:39:36 +01:00
Georg Brandl
bf3f8eb960
Issue #16037 : HTTPMessage.readheaders() raises an HTTPException when more than
...
100 headers are read. Adapted from patch by Jyrki Pulliainen.
2013-10-27 07:34:48 +01:00
Georg Brandl
28e78414f9
Issue #16040 : CVE-2013-1752: nntplib: Limit maximum line lengths to 2048 to
...
prevent readline() calls from consuming too much memory. Patch by Jyrki
Pulliainen.
2013-10-27 07:29:47 +01:00
Georg Brandl
7e27abbb39
Issue #16041 : CVE-2013-1752: poplib: Limit maximum line lengths to 2048 to
...
prevent readline() calls from consuming too much memory. Patch by Jyrki
Pulliainen.
2013-10-27 07:23:53 +01:00
Georg Brandl
72c98d3a76
Issue #17997 : Change behavior of ``ssl.match_hostname()`` to follow RFC 6125,
...
for security reasons. It now doesn't match multiple wildcards nor wildcards
inside IDN fragments.
2013-10-27 07:16:53 +01:00
Serhiy Storchaka
efa5a39fa5
Issue #19405 : Fixed outdated comments in the _sre module.
2013-10-27 08:04:58 +02:00
Georg Brandl
ca580f4ec1
Issue #16039 : CVE-2013-1752: Change use of readline in imaplib module to limit
...
line length. Patch by Emil Lind.
2013-10-27 06:52:14 +01:00
Benjamin Peterson
89d8cd943b
just return toplevel symbol table rather than all blocks ( closes #19393 )
2013-10-26 13:13:51 -04:00
Victor Stinner
2ff68dd526
Close #19339 : telnetlib module is now using time.monotonic() when available to
...
compute timeout.
2013-10-26 09:16:29 +02:00
Ned Deily
3d2f68d242
Issue #19400 : Prevent extension module build failures with Xcode 5 on OS X
...
10.8+ when using a universal Python that included a PPC architecture,
such as with a python.org 32-bit-only binary installer.
2013-10-25 16:03:35 -07:00
Tim Golden
6d09f09d8b
Issue14255 Don't flatten case of tempdir
2013-10-25 18:38:16 +01:00
Georg Brandl
186729e812
merge with 3.3
2013-10-27 09:54:53 +01:00
Georg Brandl
b89b5df9c9
merge with 3.3
2013-10-27 07:46:09 +01:00
Serhiy Storchaka
68457be619
Issue #19329 : Optimized compiling charsets in regular expressions.
2013-10-27 08:20:29 +02:00
Serhiy Storchaka
1985f7b133
Issue #19405 : Fixed outdated comments in the _sre module.
2013-10-27 08:07:46 +02:00
Nick Coghlan
624a74e4b7
Mitigate #19412 : restore test skips for --without-doc-strings
2013-10-27 14:19:12 +10:00
Benjamin Peterson
77353664e2
merge 3.3 ( #19393 )
2013-10-26 13:22:08 -04:00
Tim Peters
a577f1e0f1
Changed a comment to end grammar bikeshedding ;-)
2013-10-26 11:56:16 -05:00
Nick Coghlan
862542e500
Close #19409 : add missing import in pkgutil
2013-10-27 00:27:39 +10:00
Nick Coghlan
561eb5cbe4
Issue #19330 : Handle the no-docstrings case in tests
2013-10-26 22:20:43 +10:00
Nick Coghlan
059def58a5
Close #19330 by using public classes in contextlib
...
- added test cases to ensure docstrings are reasonable
- also updates various comments in contextlib for accuracy
- identifed #19404 as an issue making it difficult to provide
good help output on generator based context manager instances
2013-10-26 18:08:15 +10:00
Serhiy Storchaka
9eabac68a3
Issue #18685 : Restore re performance to pre-PEP 393 levels.
2013-10-26 10:45:48 +03:00
Victor Stinner
ebca392a6c
(Merge 3.3) Close #19339 : telnetlib module is now using time.monotonic() when
...
available to compute timeout.
2013-10-26 09:20:38 +02:00
Nick Coghlan
0ddaed3456
Close #19396 : make test_contextlib tolerate -S
2013-10-26 16:37:47 +10:00
Tim Peters
7bad39f174
Fiddled Thread.join() to be a little simpler. Kinda ;-)
2013-10-25 22:33:52 -05:00
Tim Peters
e5bb0bf04d
Issue #19399 : fix sporadic test_subprocess failure.
...
Change Thread.join() with a negative timeout to just return. The
behavior isn't documented then, but this restores previous
behavior.
2013-10-25 20:46:51 -05:00
Tim Golden
1cc3540669
Correct whitespace in test_os
2013-10-25 21:26:06 +01:00
Tim Golden
781bbebacb
Issue13234 Allow listdir to handle extended paths on Windows (Patch by Santoso Wijaya)
2013-10-25 20:24:06 +01:00
Brett Cannon
502834cf3c
merge
2013-10-25 15:45:42 -04:00
Brett Cannon
a20800d1d9
test_resource should not assume all attributes are available when they
...
are individually controlled by #ifdef statements in the extension
code.
2013-10-25 15:45:25 -04:00
Antoine Pitrou
3b2f0f0459
Issue #19375 : The site module adding a "site-python" directory to sys.path, if it exists, is now deprecated.
2013-10-25 21:39:26 +02:00
Brett Cannon
e38b0544c4
Issue #16803 : Move test.test_importlib.extension to use both frozen and source importlib code
2013-10-25 15:39:02 -04:00