Commit graph

21298 commits

Author SHA1 Message Date
Antoine Pitrou
d5a1a21a89 Prevent test_inspect from keeping alive a ton of frames and local variables by way of a global variable keeping a reference to a traceback.
Should fix some buildbot failures.
2012-06-17 23:18:07 +02:00
Antoine Pitrou
48114b952b Issue #14657: The frozen instance of importlib used for bootstrap is now also the module imported as importlib._bootstrap. 2012-06-17 22:33:38 +02:00
R David Murray
7636b19366 Merge: Update out of date docstring. 2012-06-17 15:27:21 -04:00
R David Murray
3ac8c780f4 Update out of date docstring. 2012-06-17 15:26:35 -04:00
Nick Coghlan
307ef8aee5 Merge from 3.2 (Ignore X-Antivirus headers in test_nntplib) 2012-06-17 21:30:35 +10:00
Nick Coghlan
14d99a1491 Ignore X-Antivirus headers in test_nntplib 2012-06-17 21:27:18 +10:00
Nick Coghlan
e51e25a3bc Merge from 3.2 (Issue #15095: Use better assertions in test_imaplib) 2012-06-17 21:15:45 +10:00
Nick Coghlan
e6ef462243 Issue #15095: Use better assertions in test_imaplib 2012-06-17 21:10:21 +10:00
Nick Coghlan
9aff2a7c41 Merge from 3.2 (Issue #15043: skip test_gdb if the custom hooks can't be loaded) 2012-06-17 19:16:02 +10:00
Jason R. Coombs
658dc3f746 Disable test on Unix. Causes buildbots to fail. See Issue #15091 2012-06-17 05:06:16 -04:00
Nick Coghlan
be4e4b5691 Issue #15043: skip test_gdb if the custom hooks can't be loaded 2012-06-17 18:57:20 +10:00
Martin v. Löwis
1730139a51 White space normalization. 2012-06-17 10:42:02 +02:00
Martin v. Löwis
bce166681c Issue #14055: Add __sizeof__ support to _elementtree. 2012-06-17 10:41:22 +02:00
Jason R. Coombs
71fde31da3 Adding test from issue6727 demonstrating that symlink import issue does not occur here in 3.3 2012-06-17 03:53:47 -04:00
Nick Coghlan
d972265df8 Improve an internal ipaddress test, add a comment explaining why treating networks as containers of interfaces rather than addresses would prove confusing 2012-06-17 16:33:00 +10:00
Meador Inge
8d5c0b8c19 Issue #15054: Fix incorrect tokenization of 'b' string literals.
Patch by Serhiy Storchaka.
2012-06-16 21:49:08 -05:00
Antoine Pitrou
7e19337ebc Normalize whitespace 2012-06-16 22:50:54 +02:00
Antoine Pitrou
aaefac76dd Issue #14874: Restore charmap decoding speed to pre-PEP 393 levels.
Patch by Serhiy Storchaka.
2012-06-16 22:48:21 +02:00
Eli Bendersky
6319e0fa20 Make the test more resilient to test-run order (closes #15075) 2012-06-16 06:47:44 +03:00
Victor Stinner
184252ad3f Fix "%f" format of str%args if the result is not an ASCII or latin1 string 2012-06-16 02:57:41 +02:00
Alexander Belopolsky
0831382d69 Issue #15006: Allow equality comparison between naive and aware time
or datetime objects.
2012-06-15 20:19:47 -04:00
Brett Cannon
ea0b823940 Issue #14938: importlib.abc.SourceLoader.is_package() now takes the
module name into consideration when determining whether a module is a
package or not. This prevents importing a module's __init__ module
directly and having it considered a package, which can lead to
duplicate sub-modules.

Thanks to Ronan Lamy for reporting the bug.
2012-06-15 20:00:53 -04:00
Brett Cannon
0450c9ed52 Issue #13959: Add to imp.find_module() and load_module's docstrings
that they are deprecated (previous commit documented this fact in the
module docs).
2012-06-15 19:39:06 -04:00
Brett Cannon
24aa693c7e Merge 2012-06-15 19:04:29 -04:00
Alexander Belopolsky
016ef551a7 Removed redundant code 2012-06-15 18:15:25 -04:00
Richard Oudkerk
9125775aa6 Fix _TestListener.ALLOWED_TYPES and add sanity check 2012-06-15 21:53:34 +01:00
Richard Oudkerk
3049f1243e Increase timeout used when waiting for manager to shutdown cleanly
before resorting to terminate()
2012-06-15 20:08:29 +01:00
Richard Oudkerk
0f52346e76 Fix for 2d2f206d040e so that test_multiprocessing does not depend on ctypes 2012-06-15 19:18:30 +01:00
Petri Lehtinen
a717d563d0 #15036: Make a repeated changes and flushes work with single-file mailboxes 2012-06-15 21:01:56 +03:00
Petri Lehtinen
02653f1b11 #15036: Make a repeated changes and flushes work with single-file mailboxes 2012-06-15 20:59:31 +03:00
Richard Oudkerk
3730a17a58 Issue #14059: Implement multiprocessing.Barrier 2012-06-15 18:26:07 +01:00
Nick Coghlan
807770ec1b Issue #15061: Don't oversell the capabilities of the new non-shortcircuiting comparison function in hmac 2012-06-15 21:14:08 +10:00
Eli Bendersky
307693a8bb Skip XincludeTest entirely instead of just ignoring failures, because it may segfault, depending on the order of running tests 2012-06-15 09:40:44 +03:00
Eli Bendersky
27cbb19ae5 Removed _SimpleElementPath and its flaky test. The test monkey-patches the module, which causes other failures and fails itself depending on the order tests are run. 2012-06-15 09:03:19 +03:00
Eli Bendersky
175fada429 mark problematic test as expected failure - investigating 2012-06-15 08:37:08 +03:00
Eli Bendersky
64d11e60f2 Replace the iter/itertext methods of Element in _elementtree with true C implementations, instead of the bootstrapped Python code. In addition to being cleaner (removing the last remains of the bootstrapping code in _elementtree), this gives a 10x performance boost for iter() on large documents.
Also reorganized the tests a bit to be more robust.
2012-06-15 07:42:50 +03:00
Richard Oudkerk
73d9a292ae Issue #13841: Make child processes exit using sys.exit() on Windows 2012-06-14 15:30:10 +01:00
Martin v. Löwis
474eb23b7f merge 3.2 2012-06-14 15:37:53 +02:00
Martin v. Löwis
993fe3f035 Issue #14937: Fix typo. Patch by Roger Serwy. 2012-06-14 15:37:21 +02:00
Alexander Belopolsky
c142bba2a7 Issue #1667546: On platforms supporting tm_zone and tm_gmtoff fields
in struct tm, time.struct_time objects returned by time.gmtime(),
time.localtime() and time.strptime() functions now have tm_zone and
tm_gmtoff attributes.  Original patch by Paul Boddie.
2012-06-13 22:15:26 -04:00
Victor Stinner
6222d76952 Fix test_time for adjusted/adjustable changes 2012-06-12 23:04:11 +02:00
Victor Stinner
2b89fdf7eb PEP 418: Rename adjusted attribute to adjustable in time.get_clock_info() result
Fix also its value on Windows and Linux according to its documentation:
"adjustable" indicates if the clock *can be* adjusted, not if it is or was
adjusted.

In most cases, it is not possible to indicate if a clock is or was adjusted.
2012-06-12 22:46:37 +02:00
Richard Oudkerk
f0604fddc3 Issue #3518: Remove references to non-existent BaseManager.from_address()
method
2012-06-11 17:56:08 +01:00
Brett Cannon
7b383c431a Make a test easier to read. 2012-06-11 11:02:36 -04:00
Nick Coghlan
4fae8cdaea Close #13857: Added textwrap.indent() function (initial patch by Ezra
Berch)
2012-06-11 23:07:51 +10:00
Brian Quinlan
a26ad5a0a1 #15015: Fix accessing an non-existing attribute. 2012-06-11 12:59:07 +10:00
Michael Foord
f7c4158057 Adding patch.stopall method to unittest.mock 2012-06-10 20:36:32 +01:00
Raymond Hettinger
1c2018c311 Small cleanup and optimization 2012-06-09 22:51:39 -07:00
Raymond Hettinger
80ed4d4774 Minor reformatting (wrap fat lines, etc.) and create an __main__ file 2012-06-09 18:46:45 -07:00
Michael Foord
75963643b1 Fix exception when calling reset_mock on a mock created with autospec 2012-06-09 17:31:59 +01:00