Commit Graph

17524 Commits

Author SHA1 Message Date
Serhiy Storchaka 85812bca21 Issue #18919: Fixed resource leaks in audio tests. 2013-10-14 20:09:47 +03:00
Serhiy Storchaka 1f56a94a9e Issue #18919: Check warnings messages in the aifc module tests. 2013-10-14 20:06:04 +03:00
Serhiy Storchaka 4606d36d7f Issue #18919: Check warnings messages in the aifc module tests. 2013-10-14 20:05:33 +03:00
Antoine Pitrou 6039db8de3 Issue #18776: atexit callbacks now display their full traceback when they raise an exception. 2013-10-13 21:54:15 +02:00
Antoine Pitrou 24201d497c Issue #18776: atexit callbacks now display their full traceback when they raise an exception. 2013-10-13 21:53:13 +02:00
Georg Brandl fbc3c3c2be Closes #17730: in code.interact(), when banner="", do not print anything.
Also adds tests for banner printing.
2013-10-13 21:49:06 +02:00
Georg Brandl 6e22055ee1 pdb: modernize find_function() and add tests for it.
Closes #18714.
2013-10-13 20:51:47 +02:00
Ethan Furman 9efcb6bf38 Issue19030: commit tests for DynamicClassAttribute 2013-10-13 10:52:10 -07:00
Serhiy Storchaka eb7414fc29 Issue #18919: Unified and extended tests for audio modules: aifc, sunau and
wave.
2013-10-13 18:06:45 +03:00
Serhiy Storchaka 1b80e63d70 Issue #18919: Unified and extended tests for audio modules: aifc, sunau and
wave.
2013-10-13 17:55:07 +03:00
Mark Dickinson ed7bb488b4 Remove failing checks for explicit error messages. 2013-10-13 11:34:01 +01:00
Mark Dickinson ef8627b3f0 Issue #18659: fix test_format test that wasn't being executed. Thanks Vajrasky Kok for the patch. 2013-10-13 11:04:36 +01:00
Georg Brandl daa1fa991c Back out accidentally pushed changeset b51218966201. 2013-10-13 09:32:59 +02:00
Georg Brandl 4300019e1a Add re.fullmatch() function and regex.fullmatch() method, which anchor the
pattern at both ends of the string to match.

Patch by Matthew Barnett.
Closes #16203.
2013-10-13 09:18:45 +02:00
Christian Heimes 06239f62b0 merge 2013-10-13 02:22:10 +02:00
Christian Heimes f1dc3ee16d Issue #19218: Rename collections.abc to _collections_abc in order to speed up interpreter start 2013-10-13 02:04:20 +02:00
Richard Oudkerk 7b4a36194a Merge. 2013-10-13 00:52:21 +01:00
Richard Oudkerk 4f35079858 Make test_terminate() succeed or fail quickly.
This does not fix #19227, but should stop the Gentoo buildbot from hanging.
2013-10-13 00:49:27 +01:00
Christian Heimes e92ef13b0a Issue #18582: Add 'pbkdf2_hmac' to the hashlib module. 2013-10-13 00:52:43 +02:00
Antoine Pitrou 1164dfcb86 Issue #19219: Speed up marshal.loads(), and make pyc files slightly (5% to 10%) smaller. 2013-10-12 22:25:39 +02:00
Christian Heimes f403f50378 Issue #19205: _osx_support uses the re module all over the place. Omit the test for nw. 2013-10-12 15:08:42 +02:00
Victor Stinner e8785ff82a Close #18754: Run Python child processes in isolated more in the test suite. 2013-10-12 14:44:01 +02:00
Christian Heimes 179a3dbc9e Issue #19205: add debugging output for failing test on Snow Leopard 2013-10-12 12:32:21 +02:00
Christian Heimes cbf6e95de5 merge 2013-10-12 01:41:49 +02:00
Christian Heimes c1df2729ea Issue #19209: fix structseq test 2013-10-12 01:38:52 +02:00
Victor Stinner 370cb25307 test_os: report tests as skipped when os.statvfs() fails with ENOSYS 2013-10-12 01:33:54 +02:00
Christian Heimes 2582762b1b Issue #19209: Remove import of copyreg from the os module to speed up
interpreter startup. stat_result and statvfs_result are now hard-coded to
reside in the os module.
The patch is based on Victor Stinner's patch.
2013-10-12 01:27:08 +02:00
Christian Heimes 1a5fb4e3c1 Also test that the locale module isn't loaded during normal startup 2013-10-12 01:00:51 +02:00
Christian Heimes 8c9cd5a3d4 Issue #19205: Don't import the 're' module in site and sysconfig module to
to speed up interpreter start.
2013-10-12 00:24:55 +02:00
Antoine Pitrou fd4722cacf Issue #9548: Add a minimal "_bootlocale" module that is imported by the _io module instead of the full locale module. 2013-10-12 00:13:50 +02:00
Antoine Pitrou 73abc527eb Fix expected checksum for new unicodedata (after full rebuild) 2013-10-11 21:40:55 +02:00
R David Murray aaf17b33a5 #19192: Give up on time.xmlrpc.com as an xmlrpc network test.
time.xmlrpc.com has come and gone over the years, and has been gone again for
a while.  The test did test one thing that the current xmlrpc tests don't: the
use of multiple levels of attribute names in the call.  So in addition to
removing the network test, we add a test in xmlrpc of dotted name access.

There should also be a test for when dotted name access is disallowed, but
that requires more extensive test harness refactoring, and in any case was not
tested by the network test we are deleting, since it is a server-side setting.

This is a slightly simplified version of a patch by Vajrasky Kok.
2013-10-11 12:09:51 -04:00
Raymond Hettinger 1254b407ac Rename contextlib.ignored() to contextlib.ignore(). 2013-10-10 22:39:39 -07:00
Benjamin Peterson 94d08d908b upgrade unicode db to 6.3.0 (closes #19221) 2013-10-10 17:24:45 -04:00
R David Murray 78d692f98e 18764: remove the problematic 'print' alias for the PDB 'p' command.
So that it no longer shadows the print function.

Patch by Connor Osborn, doc and test changes by R. David Murray.
2013-10-10 17:23:26 -04:00
Raymond Hettinger 088cbf2d39 Issue #15805: Add contextlib.redirect_stdout() 2013-10-10 00:46:57 -07:00
Tim Peters 3d1b7a0c10 Whitespace normalization. 2013-10-08 21:29:27 -05:00
Tim Peters e99bdb9694 Issue 19158: a rare race in BoundedSemaphore could allow .release() too often. 2013-10-08 21:12:58 -05:00
Tim Peters 7634e1cf90 Issue 19158: a rare race in BoundedSemaphore could allow .release() too often. 2013-10-08 20:55:51 -05:00
Antoine Pitrou 77e904e6a6 Issue #18948: improve SuppressCoreFiles to include Windows crash popup suppression, and use it in more tests.
Patch by Valerie Lambert and Zachary Ware.
2013-10-08 23:04:32 +02:00
Ethan Furman 648f860c22 Close #19156: add tests and fix for Enum helper edge cases. Patch from CliffM. 2013-10-06 17:19:54 -07:00
Victor Stinner ab5a58d827 test_import.test_module_with_large_stack(): unload the test module
Ensure that the module is unloaded to be able to run the test more than once,
and to not leak memory.
2013-10-06 22:52:37 +02:00
Raymond Hettinger 3472fafe74 merge 2013-10-05 17:20:18 -07:00
Raymond Hettinger facd0a346f Strengthen one of the collections.Counter() tests 2013-10-05 17:14:51 -07:00
Antoine Pitrou 5df8a8a1fd Issue #19087: Improve bytearray allocation in order to allow cheap popping of data at the front (slice deletion). 2013-10-05 21:12:18 +02:00
Eric Snow 7e70fa5314 [issue 19152] Ensure we have actually registered ExtensionFileLoader as an ExecutionLoader. 2013-10-04 20:28:52 -06:00
Ezio Melotti a349478573 #19166: merge with 3.3. 2013-10-05 03:14:13 +03:00
Ezio Melotti 4e1f3d669b #19166: use an unused var in a test. Patch by Vajrasky Kok. 2013-10-05 03:07:03 +03:00
Raymond Hettinger 07573d7b24 merge 2013-10-04 16:52:39 -07:00
Raymond Hettinger cb1d96f782 Issue #18594: Make the C code more closely match the pure python code. 2013-10-04 16:51:02 -07:00
Brett Cannon 3ad327ec3a Issue #16803: Run test.test_importlib.test_abc under both
_frozen_importlib and source.
2013-10-04 14:47:14 -04:00
Antoine Pitrou 0e61ed8400 Issue #19014: memoryview.cast() is now allowed on zero-length views. 2013-10-03 19:56:54 +02:00
Antoine Pitrou 60b183407c Issue #19014: memoryview.cast() is now allowed on zero-length views. 2013-10-03 19:55:41 +02:00
Nick Coghlan fdf239a855 Close #17839: support bytes-like objects in base64 module
This mostly affected the encodebytes and decodebytes function
(which are used by base64_codec)

Also added a test to ensure all bytes-bytes codecs can handle
memoryview input and tests for handling of multidimensional
and non-bytes format input in the modern base64 API.
2013-10-03 00:43:22 +10:00
Brett Cannon 0de3f0197b Tweak skipIf message 2013-10-02 10:58:58 -04:00
Brett Cannon 634a8fc042 Try to fix issue #19134 again 2013-10-02 10:25:42 -04:00
Nick Coghlan 45163ccce4 Close #18690: register memoryview with Sequence ABC 2013-10-02 22:31:47 +10:00
Nick Coghlan a0f169cde8 Close #19078: memoryview now supports reversed
Patch by Claudiu Popa
2013-10-02 22:06:54 +10:00
Serhiy Storchaka 7c411a4041 Issue #19132: The pprint module now supports compact mode. 2013-10-02 11:56:18 +03:00
Serhiy Storchaka 092bd388ce Issue #19137: The pprint module now correctly formats instances of set and
frozenset subclasses.
2013-10-02 11:43:30 +03:00
Serhiy Storchaka 51844384f4 Issue #19137: The pprint module now correctly formats instances of set and
frozenset subclasses.
2013-10-02 11:40:49 +03:00
Nick Coghlan f05d981f58 Close #10042: functools.total_ordering now handles NotImplemented
(Patch by Katie Miller)
2013-10-02 00:02:03 +10:00
Nick Coghlan e6f4631f08 Merge #19092 from 3.3 2013-10-01 23:28:00 +10:00
Nick Coghlan 1a33b2f35b Close #19092: ExitStack now reraises exceptions from __exit__
Report and patch by Hrvoje Nikšić
2013-10-01 23:24:56 +10:00
Brett Cannon 63f03ed3db Issue #19134: Make a test in inspect conditional on multiprocessing
being available.

Thanks to Remi Pointel for the bug report.
2013-09-30 15:21:09 -04:00
Benjamin Peterson 95536b8405 rename some more tests to avoid duplicate names (#19123) 2013-09-29 15:18:43 -04:00
Antoine Pitrou 20b85557f2 Issue #19095: SSLSocket.getpeercert() now raises ValueError when the SSL handshake hasn't been done. 2013-09-29 19:50:53 +02:00
Richard Oudkerk 085ab4a553 Merge. 2013-09-29 17:33:04 +01:00
Richard Oudkerk 8b3f5aafd3 Issue #19112: avoid using function defined in method. 2013-09-29 17:29:56 +01:00
Benjamin Peterson 70157e8f02 merge 3.3 (#19112) 2013-09-29 11:11:10 -04:00
Benjamin Peterson cc6ef3620f move helper function into its test method (closes #19112) 2013-09-29 11:08:04 -04:00
Benjamin Peterson 353d450928 merge 3.3 (#19117) 2013-09-29 10:53:59 -04:00
Benjamin Peterson 52010b40f6 fix duplicate test names in test_dis (closes #19117) 2013-09-29 10:53:49 -04:00
Benjamin Peterson 42686e45c1 merge 3.3 (#19118) 2013-09-29 10:51:08 -04:00
Benjamin Peterson f8ab76039b remove duplicate test_mkd (closes #19118) 2013-09-29 10:51:00 -04:00
Benjamin Peterson 3dcdacfe6a merge 3.3 (#19116) 2013-09-29 10:50:24 -04:00
Benjamin Peterson db0601f871 combine two tests to avoid duplicate names (closes #19116) 2013-09-29 10:50:15 -04:00
Benjamin Peterson 177d89ce90 merge 3.3 (#19126) 2013-09-29 10:48:39 -04:00
Benjamin Peterson e8c8a592e7 fix duplicate test name (closes #19126) 2013-09-29 10:48:19 -04:00
Benjamin Peterson e86eb89b97 merge 3.3 (#19125) 2013-09-29 10:47:04 -04:00
Benjamin Peterson 1eca062be6 fix test to run and test that smtpd does support ELHO (closes #19125) 2013-09-29 10:46:31 -04:00
Benjamin Peterson 11f34caac4 delete duplicate test (closes #19123) 2013-09-29 10:39:51 -04:00
Benjamin Peterson 96609b701e merge 3.3 (#19122) 2013-09-29 10:02:28 -04:00
Benjamin Peterson 05ab7028ba remove duplicate test from test_import (closes #19122) 2013-09-29 10:01:40 -04:00
Nick Coghlan 4cc2afa0ec Close #18990: remove root attribute from XMLPullParser
- this was an internal implementation detail for iterparse
- this has been changed to use a new private method instead
- XMLPullParser.close docs are now more explicit about not
  returning a root element and instead direct users towards
  read_events
- also added missing docstrings and clarified some details
  related to exactly *when* events are consumed from the
  internal queue

(Initial patch by Stefan Behnel)
2013-09-28 23:50:35 +10:00
Serhiy Storchaka ab25c7c011 Issue #19053: ZipExtFile.read1() with non-zero argument no more returns empty
bytes until end of data.
2013-09-27 22:14:31 +03:00
Serhiy Storchaka d2c07a58af Issue #19053: ZipExtFile.read1() with non-zero argument no more returns empty
bytes until end of data.
2013-09-27 22:11:57 +03:00
Vinay Sajip cb2c4fe649 Updated test_logging so that errors don't occur in the absence of threading. 2013-09-27 19:08:24 +01:00
Vinay Sajip f6cdffeb78 Streamlined logging tests by moving common code to a helper function. 2013-09-27 18:41:12 +01:00
Vinay Sajip 5421f35d5e logging: added support for Unix domain sockets to SocketHandler and DatagramHandler. 2013-09-27 18:18:28 +01:00
Ethan Furman e03ea37a7b Close #19030: improvements to inspect and Enum.
inspect.getmembers and inspect.classify_class_attrs now search the metaclass
mro for types.DynamicClassAttributes (what use to be called
enum._RouteClassAttributeToGetattr); in part this means that these two
functions no longer rely solely on dir().

Besides now returning more accurate information, these improvements also
allow a more helpful help() on Enum classes.
2013-09-25 07:14:41 -07:00
Serhiy Storchaka 369606df2f Issue #19028: Fixed tkinter.Tkapp.merge() for non-string arguments. 2013-09-23 23:20:07 +03:00
Ethan Furman 64a9972b40 Close #19025: Better error message when trying to delete an Enum member.
Also slight code reorg for PEP 8 guidelines.
2013-09-22 16:18:19 -07:00
Jason R. Coombs 838521eed0 Close #18978: Merge changes. 2013-09-22 10:06:24 -04:00
Nick Coghlan f94a16b494 Close #18626: add a basic CLI for the inspect module 2013-09-22 22:46:49 +10:00
Nick Coghlan df4cb129e4 Merge from 3.3 2013-09-22 19:38:44 +10:00
Nick Coghlan ce34687d23 Fix comment in test_gdb 2013-09-22 19:38:16 +10:00
Antoine Pitrou a78cccb134 test_gdb: skip pretty-printing of sets with gdb < 7.3
(should fix the failures on OpenIndiana)
2013-09-22 00:14:27 +02:00
Antoine Pitrou d0f3e07a60 test_gdb: dump gdb version in verbose mode 2013-09-21 23:56:17 +02:00
R David Murray 4750fa8369 Merge #14984: On POSIX, enforce permissions when reading default .netrc. 2013-09-17 21:28:17 -04:00