80382 Commits

Author SHA1 Message Date
Antoine Pitrou
9d95254bb7 Issue #18772: fix the gdb plugin after the set implementation changes 2013-08-24 21:07:07 +02:00
Antoine Pitrou
f5e30d8b54 Issue #18756: make test_urandom_failure more robust by executing its code in a subprocess 2013-08-24 20:52:45 +02:00
Antoine Pitrou
eba25bafc7 Issue #18756: make test_urandom_failure more robust by executing its code in a subprocess 2013-08-24 20:52:27 +02:00
Nick Coghlan
095668914c Close #18538: `python -m dis` now uses argparse.
Patch by Michele Orrù.
2013-08-25 00:48:17 +10:00
Victor Stinner
e726ce1f3e (Merge 3.3) test_socket: cancel scheduled alarm on test failure 2013-08-24 15:53:39 +02:00
Victor Stinner
71fe8c00f6 test_socket: cancel scheduled alarm on test failure 2013-08-24 15:52:47 +02:00
Benjamin Peterson
3a7dffa4ce remove support for compiling on systems without getcwd()
Do we need a fallback implementation of getcwd() from 1991 that claims to
support "really old Unix systems"? I don't think so.
2013-08-23 21:01:48 -05:00
Serhiy Storchaka
12d5e0f016 Merge heads 2013-08-24 00:42:54 +03:00
Serhiy Storchaka
96d5c54130 Issue #18757: Improved cross-references in the concurrent package. 2013-08-24 00:27:59 +03:00
Serhiy Storchaka
9e0ae53980 Issue #18757: Improved cross-references in the concurrent package. 2013-08-24 00:23:38 +03:00
Antoine Pitrou
91541931f5 Back out 5bd9db528aed (issue #18408). It caused unsolved buildbot failures. 2013-08-23 23:18:20 +02:00
Antoine Pitrou
0acbcb5bbe Issue #17741: use composition, rather than inheritance, for xml.etree.iterparse's result class.
Patch by Stefan Behnel.
2013-08-23 23:04:30 +02:00
Ezio Melotti
892584e091 #18798: merge typo fix from 3.3 and also use two unused variables. 2013-08-23 23:09:32 +03:00
Ezio Melotti
78ede7c96d #18798: fix typo in test_fcntl. Patch by Vajrasky Kok. 2013-08-23 23:06:31 +03:00
Ezio Melotti
6e6c6ac3d7 #18796: improve documentation of the file argument of dis.show_code. Initial patch by Vajrasky Kok. 2013-08-23 22:41:39 +03:00
Brett Cannon
f79126f373 Issue #18394: Explicitly close the file object cgi.FieldStorage
caches.

Eliminates the ResoureWarning raised during testing.

Patch also independently written by Vajrasky Kok.
2013-08-23 15:15:48 -04:00
Brett Cannon
9c7eb55570 Stop using assertEquals. 2013-08-23 14:38:11 -04:00
Brett Cannon
7e0a18158f Make test_import more robust and stop using assertRaisesRegexp(). 2013-08-23 14:31:27 -04:00
Victor Stinner
a93c6db68b (Merge 3.3) Close #17702: On error, os.environb now removes suppress the except
context when raising a new KeyError with the original key.
2013-08-23 19:23:42 +02:00
Victor Stinner
0c2dd0c0a9 Close #17702: On error, os.environb now removes suppress the except context
when raising a new KeyError with the original key.
2013-08-23 19:19:15 +02:00
Brett Cannon
330cc52c99 Delete merge markers 2013-08-23 12:10:09 -04:00
Brett Cannon
e2f6b799b8 merge for issue #18755 2013-08-23 11:52:44 -04:00
Brett Cannon
16ababc213 merge for issue #18755 2013-08-23 11:52:19 -04:00
Brett Cannon
f1e0273023 NEW entry for issue #18755 2013-08-23 11:47:26 -04:00
Brett Cannon
a4975a911d Issue #18755: Allow imp.load_*() loaders to have get_data() called
multiple times.
2013-08-23 11:45:57 -04:00
Brett Cannon
f9f0458961 merge emphasized discouragement of overriding __import__ 2013-08-23 11:00:04 -04:00
Brett Cannon
f5ebd26403 Emphasize that people should not override __import__.
With importlib getting used more and more, changing __import__ will
not work as well as people used to hope as it will potentially bypass
importers, etc. It also will not work with importlib.import_module()
as it uses "importlib.__import__" (i.e. importlib's implementation of
import) directly and not builtins.__import__.
2013-08-23 10:58:49 -04:00
Raymond Hettinger
bfc1e1a9cd Add the same dummy type that is used in dictionaries. 2013-08-23 03:22:15 -05:00
Tim Peters
a1db94554b Add line explaining the "%sort" test. 2013-08-22 18:42:02 -05:00
Tim Peters
01e75a699d Add line explaining the "%sort" test.
(grafted from 1ea833ecaf5a9d43a886e9e73b4e2551d0d5b548)
2013-08-22 18:32:53 -05:00
Richard Oudkerk
67e5198dbf Make test for semaphore tracker capture and check the debug output. 2013-08-22 23:37:23 +01:00
Raymond Hettinger
fcf3b500ba Issue 18797: Remove unneeded refcount adjustments for dummy objects.
It suffices to keep just one reference when the object is created.
2013-08-22 08:20:31 -07:00
Serhiy Storchaka
e39e54d0b3 Issue #16809: Fixed some tkinter incompabilities with Tcl/Tk 8.6. 2013-08-22 17:53:06 +03:00
Serhiy Storchaka
06ce077e43 Issue #16809: Fixed some tkinter incompabilities with Tcl/Tk 8.6. 2013-08-22 17:51:58 +03:00
Serhiy Storchaka
254954aacd Issue #16809: Tkinter's splitlist() and split() methods now accept Tcl_Obj
argument.

This is needed for support Tcl/Tk 8.6.
2013-08-22 17:42:05 +03:00
Serhiy Storchaka
203eb317d2 Issue #16809: Tkinter's splitlist() and split() methods now accept Tcl_Obj
argument.

This is needed for support Tcl/Tk 8.6.
2013-08-22 17:40:31 +03:00
Richard Oudkerk
a93bf7b9a6 Fix devpoll_dealloc(). 2013-08-22 14:03:44 +01:00
Richard Oudkerk
168d59b669 Move definition of devpoll_internal_close() before devpoll_close(). 2013-08-22 13:31:15 +01:00
Richard Oudkerk
069d65c35a Fix compilation of select module on Solaris. 2013-08-22 13:04:23 +01:00
Christian Heimes
50f6e71fed Issue #18747: Update Misc/NEWS to reflect the latest changeset. 2013-08-22 13:22:46 +02:00
Christian Heimes
1852b30c50 Issue #18747: Update Misc/NEWS to reflect the latest changeset. 2013-08-22 13:22:37 +02:00
Christian Heimes
f54c24628b Issue #18747: Use a parent atfork handler instead of a child atfork handler.
fork() is suppose to be async-signal safe but the handler calls unsafe functions. A parent handler mitigates the issue.
2013-08-22 13:19:56 +02:00
Christian Heimes
80c5de93f9 Issue #18747: Use a parent atfork handler instead of a child atfork handler.
fork() is suppose to be async-signal safe but the handler calls unsafe functions. A parent handler mitigates the issue.
2013-08-22 13:19:48 +02:00
Richard Oudkerk
7d2d43c0b1 Stop making fork server have copy of semaphore_tracker_fd. 2013-08-22 11:38:57 +01:00
Richard Oudkerk
0718f70131 Issue #18762: Fix EBADF error when using forkserver. 2013-08-22 11:38:55 +01:00
R David Murray
b8c537094d Merge #18324: set_payload now correctly handles binary input. 2013-08-21 21:13:51 -04:00
R David Murray
00ae435dee #18324: set_payload now correctly handles binary input.
This also backs out the previous fixes for for #14360, #1717, and #16564.
Those bugs were actually caused by the fact that set_payload didn't decode to
str, thus rendering the model inconsistent.  This fix does mean the data
processed by the encoder functions goes through an extra encode/decode cycle,
but it means the model is always consistent.  Future API updates will provide
a better way to encode payloads, which will bypass this minor de-optimization.

Tests by Vajrasky Kok.
2013-08-21 21:10:31 -04:00
Victor Stinner
cba2e3c2e9 remove unused declaration 2013-08-22 02:23:13 +02:00
Victor Stinner
82fb71d662 Cleanup test_builtin 2013-08-22 01:58:12 +02:00
Victor Stinner
0f24b879c9 Use new new stat.S_ISDOOR() function, instead of hardcoded mask 2013-08-22 01:58:04 +02:00