Commit Graph

33265 Commits

Author SHA1 Message Date
Serhiy Storchaka 3afec4e0b9 Merge heads 2013-11-17 12:30:29 +02:00
Georg Brandl 497b3943a3 merge with 3.3.3 release clone 2013-11-17 09:17:18 +01:00
Georg Brandl 9e2043a561 Bump to 3.3.3 final. 2013-11-17 07:58:22 +01:00
Nick Coghlan c610aba1ed Close #19282: Native context management in dbm 2013-11-17 15:59:51 +10:00
Serhiy Storchaka 4725dc3ff4 Issue #19604: Use specific asserts in array tests. 2013-11-17 00:45:39 +02:00
Serhiy Storchaka 91b3e77a6a Issue #19604: Use specific asserts in array tests. 2013-11-17 00:45:17 +02:00
Serhiy Storchaka e3eb3ec5c4 Issue #19602: Use specific asserts in tkinter tests. 2013-11-17 00:42:52 +02:00
Serhiy Storchaka e3b5a76540 Issue #19602: Use specific asserts in tkinter tests. 2013-11-17 00:42:25 +02:00
Serhiy Storchaka d4b75bf63e Issue #19601: Use specific asserts in sqlite3 tests. 2013-11-17 00:40:01 +02:00
Serhiy Storchaka 78ee078405 Issue #19601: Use specific asserts in sqlite3 tests. 2013-11-17 00:39:12 +02:00
Serhiy Storchaka 932c6160b5 Issue #19600: Use specific asserts in distutils tests. 2013-11-17 00:20:12 +02:00
Serhiy Storchaka 39989157ad Issue #19600: Use specific asserts in distutils tests. 2013-11-17 00:17:46 +02:00
Serhiy Storchaka bc39869095 Issue #19594: Use specific asserts in unittest tests. 2013-11-17 00:14:35 +02:00
Serhiy Storchaka 5665bc5980 Issue #19594: Use specific asserts in unittest tests. 2013-11-17 00:12:21 +02:00
Serhiy Storchaka 8f203dda0c Issue #19591: Use specific asserts in ctype tests. 2013-11-16 23:53:39 +02:00
Serhiy Storchaka 7c5e24f948 Issue #19591: Use specific asserts in ctype tests. 2013-11-16 23:51:26 +02:00
Ezio Melotti 745d54d2fa #17806: Added keyword-argument support for "tabsize" to str/bytes.expandtabs(). 2013-11-16 19:10:57 +02:00
Jason R. Coombs b41c2547e0 Correct long line 2013-11-16 10:47:17 -05:00
Jason R. Coombs 9d78e416f5 Issue #19586: Update remaining deprecated assertions to their preferred usage. 2013-11-16 10:35:46 -05:00
Serhiy Storchaka 452bab4acf Issue #16685: Added support for writing any bytes-like objects in the aifc,
sunau, and wave modules.
2013-11-16 14:01:31 +02:00
Serhiy Storchaka 7714ebbe0e Issue #5202: Added support for unseekable files in the wave module. 2013-11-16 13:04:00 +02:00
Serhiy Storchaka a7a34a83f3 Issue #19590: Use specific asserts in email tests. 2013-11-16 12:56:54 +02:00
Serhiy Storchaka 328cf3cbdf Issue #19590: Use specific asserts in email tests. 2013-11-16 12:56:23 +02:00
Guido van Rossum 2335de7a20 asyncio: Replace connection_refused() with error_received(). 2013-11-15 16:51:48 -08:00
Jason R. Coombs 6f87a08aa7 Update more usage of assertEqual 2013-11-15 19:41:57 -05:00
Jason R. Coombs e9f0311a0f Use preferred assertEqual 2013-11-15 19:38:51 -05:00
Jason R. Coombs 75c40aed55 Use preferred assertEqual form. Correct indentation. 2013-11-15 19:35:05 -05:00
Jason R. Coombs cb37641bb4 Issue #7408: Forward port limited test from Python 2.7, fixing failing buildbot tests on BSD-based platforms. 2013-11-15 19:24:07 -05:00
Vinay Sajip 9c10d6b800 Issue #19504: Used American spelling for 'customize'. 2013-11-15 20:58:13 +00:00
Vinay Sajip a76157dca6 Issue #19523: Closed FileHandler leak which occurred when delay was set. 2013-11-15 20:40:27 +00:00
Serhiy Storchaka 8bdc130121 Issue #19592: Use specific asserts in lib2to3 tests. 2013-11-14 23:49:58 +02:00
Andrew Kuchling 98a0d063a1 Closes #12828: add docstring text noting this is an internal-only module 2013-11-12 10:25:15 -05:00
Tim Golden 6e51b8ff0f Issue13674 Correct crash with strftime %y format under Windows 2013-11-12 12:36:54 +00:00
Zachary Ware c12f09ed24 Issue #19440: Clean up test_capi 2013-11-11 22:47:04 -06:00
Tim Golden acea823fd8 Remove outdated comment 2013-11-11 15:08:04 +00:00
Georg Brandl 4cf9b2047d Bump to 3.3.3rc2. 2013-11-11 06:13:54 +01:00
Jason R. Coombs a2ebfd0256 Issue #19544 and Issue #6286: Restore use of urllib over http allowing use of http_proxy for Distutils upload command, a feature accidentally lost in the rollback of distutils2. 2013-11-10 18:50:10 -05:00
Jason R. Coombs 3492e39b44 Issue 19544 and Issue #7457: Restore the read_pkg_file method to distutils.dist.DistributionMetadata accidentally removed in the undo of distutils2. 2013-11-10 18:15:03 -05:00
Andrew Kuchling 2a1838b9df Issue #19544 and Issue #1180: Restore global option to ignore ~/.pydistutils.cfg in Distutils, accidentally removed in backout of distutils2 changes. 2013-11-10 18:11:00 -05:00
Victor Stinner aa32779632 Issue #19544, #6516: no need to catch AttributeError on import pwd/grp 2013-11-15 23:13:17 +01:00
Christian Heimes 06afed07d1 Issue #19544 and Issue #6516: quick workaround for failing builds 2013-11-15 23:08:21 +01:00
Vinay Sajip 56b04352f8 Issue #19504: Used American spelling for 'customize'. 2013-11-15 20:58:47 +00:00
Vinay Sajip 5e75829ec3 Closes #19523: Merged fix from 3.3. 2013-11-15 20:42:47 +00:00
Andrew Kuchling 5e2d45672c Issue #19544 and Issue #6516: Restore support for --user and --group parameters to sdist command as found in Python 2.7 and originally slated for Python 3.2 but accidentally rolled back as part of the distutils2 rollback. Closes Issue #6516. 2013-11-15 13:01:52 -05:00
Guido van Rossum 39ecf2ed13 asyncio: Longer timeout in Windows test_popen. Fixes issue 19598. 2013-11-15 07:41:10 -08:00
Nick Coghlan 4e553e2e52 Avoid triggering the refleak detector 2013-11-16 00:35:34 +10:00
Nick Coghlan c4c2580d43 Close 19609: narrow scope of codec exc chaining 2013-11-15 21:47:37 +10:00
Guido van Rossum 91d2c5674a asyncio: Refactor waitpid mocks. Patch by Anthony Baire. 2013-11-14 16:16:29 -08:00
Serhiy Storchaka 1eadd6a120 Issue #19592: Use specific asserts in lib2to3 tests. 2013-11-14 23:50:51 +02:00
Serhiy Storchaka e048addedc Issue #19589: Use specific asserts in asyncio tests. 2013-11-14 23:10:51 +02:00
Guido van Rossum f38f7f3c7b asyncio: Avoid ResourceWarning. Fix issue 19580 by Vajrasky Kok. 2013-11-14 10:06:18 -08:00
Guido van Rossum 8ff3e8af72 asyncio: Relax timing requirement. Fixes issue 19579. 2013-11-13 20:17:52 -08:00
Guido van Rossum 2bcae708d8 asyncio: Fix from Anthony Baire for CPython issue 19566 (replaces earlier fix). 2013-11-13 15:50:08 -08:00
Ethan Furman be3c2fea35 removed Enum.__eq__ as it added nothing 2013-11-13 14:25:45 -08:00
Guido van Rossum 82e9f32f17 asyncio: Temporary fix by Victor Stinner for issue 19566. 2013-11-13 11:08:34 -08:00
Nick Coghlan 8b097b4ed7 Close #17828: better handling of codec errors
- output type errors now redirect users to the type-neutral
  convenience functions in the codecs module
- stateless errors that occur during encoding and decoding
  will now be automatically wrapped in exceptions that give
  the name of the codec involved
2013-11-13 23:49:21 +10:00
Nick Coghlan d3e83e2a3e Avoid global side effect in test_ensurepip 2013-11-13 22:24:58 +10:00
Nick Coghlan ca351e6bc5 Fix test_socket for repr update 2013-11-13 22:10:16 +10:00
Giampaolo Rodola' c46600d8f2 merge 2013-11-12 23:09:01 +01:00
Giampaolo Rodola' 1bfa7ed3b0 test.support: considering the module is a mix of utilities unrelated with each other divide __all__ in sub-sections so that it can be used as a quick-reference doc 2013-11-12 23:08:27 +01:00
Victor Stinner 45956b9a33 Close #19466: Clear the frames of daemon threads earlier during the Python
shutdown to call objects destructors. So "unclosed file" resource warnings are
now corretly emitted for daemon threads.
2013-11-12 16:37:55 +01:00
Andrew Kuchling c6a140f330 Merge from 3.3 2013-11-12 10:26:15 -05:00
Tim Golden d9182e64cb Remove mis-merged artefact 2013-11-12 12:51:37 +00:00
Tim Golden bbe268f583 Issue13674 Correct crash with strftime %y format under Windows 2013-11-12 12:48:20 +00:00
Zachary Ware dfcd694674 Issue #19440: Clean up test_capi 2013-11-11 22:59:23 -06:00
Andrew Kuchling 785918250f Closes #6683: add a test that exercises multiple authentication.
The SMTP server advertises four different authentication methods, and
the code will try CRAM-MD5 first, which will fail, but LOGIN succeeds.
2013-11-11 14:03:23 -05:00
Tim Golden fc0cad8b04 Remove outdated comment 2013-11-11 15:08:40 +00:00
Nick Coghlan d0cf0635b3 Close #19406: Initial implementation of ensurepip
Patch by Donald Stufft and Nick Coghlan
2013-11-11 22:11:55 +10:00
Kristjan Valur Jonsson 020af2a2bc Issue #8799: Reduce timing sensitivity of condition test by explicitly
delaying the main thread so that it doesn't race ahead of the workers.
2013-11-11 11:29:04 +00:00
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