Commit graph

80479 commits

Author SHA1 Message Date
Ethan Furman
ec15a826ce Close #18738: Route __format__ calls to mixed-in type for mixed Enums (such as IntEnum). 2013-08-31 19:17:41 -07:00
Eli Bendersky
34567ec94b Update whatsnew/3.4.rst wrt. the socket constants switch to IntEnum
[issue #18730]
2013-08-31 15:18:48 -07:00
Eli Bendersky
b2ff3cf0e9 Switch the AF_* and SOCK_* constants in the socket module to IntEnum.
Closes #18720.
2013-08-31 15:13:30 -07:00
Terry Jan Reedy
7e7cf8bc51 Issue #12037: Fix test_email for desktop Windows. 2013-08-31 17:16:45 -04:00
Terry Jan Reedy
740d6b6f39 Issue #12037: Fix test_email for desktop Windows. 2013-08-31 17:12:21 -04:00
Terry Jan Reedy
2e87c87933 Merge from 3.3 #18489 Search Engine tests 2013-08-31 16:28:53 -04:00
Terry Jan Reedy
31e4d325b6 Issue #18489: Add complete, gui-free tests for idlelib.SearchEngine.
Patch import and initialization in SearchEngine to make testing easier.
Improve docstrings, especially to clarify the double role of 'ok' parameters.
Original patch by Phil Webster.
2013-08-31 16:27:16 -04:00
Ethan Furman
13bdfa7a7f Issue #18780: code cleanup. 2013-08-31 12:48:51 -07:00
Andrew Svetlov
a41213726b Temporary disable tests cleanup (issue 11798). 2013-08-31 20:55:25 +03:00
Ethan Furman
fb13721b1b Close #18780: %-formatting now prints value for int subclasses with %d, %i, and %u codes. 2013-08-31 10:18:55 -07:00
Charles-François Natali
08548f4a75 Merge. 2013-08-31 17:32:30 +02:00
Eli Bendersky
2c68e300e5 Fix XMLPullParser documentation to say "non-blocking" instead of "asynchronous".
The latter is more ambiguous.

Related to issue #17741
2013-08-31 07:37:23 -07:00
Charles-François Natali
24aa041731 Use INADDR_BROADCAST instead of hard-coded value (it's part of POSIX and
already appears without #ifdef a couple lines above).
2013-08-31 14:48:25 +02:00
Charles-François Natali
fcfb324e81 Use the recent support.HOSTv6 addition. 2013-08-31 14:40:49 +02:00
Antoine Pitrou
4879a963d4 Issue #18756: os.urandom() now uses a lazily-opened persistent file descriptor, so as to avoid using many file descriptors when run in parallel from multiple threads. 2013-08-31 00:26:02 +02:00
Antoine Pitrou
267964c837 Forward port new tests from Issue #18851. 2013-08-31 00:12:37 +02:00
Antoine Pitrou
a8392717f1 Forward port new tests from Issue #18851. 2013-08-30 23:38:13 +02:00
Charles-François Natali
79a53ea7d7 Issue #18418: After fork(), reinit all threads states, not only active ones.
Patch by A. Jesse Jiryu Davis.
2013-08-30 23:34:26 +02:00
Charles-François Natali
9939cc89a4 Issue #18418: After fork(), reinit all threads states, not only active ones.
Patch by A. Jesse Jiryu Davis.
2013-08-30 23:32:53 +02:00
Eli Bendersky
b586934f0e Issue #17741: Rename IncrementalParser and its methods.
The new names are hopefully more descriptive and consistent. If you feel you
don't agree with this change, *please* read issue 17741 first - there's a lot of
discussion in there.
2013-08-30 05:51:20 -07:00
Philip Jenvey
1221f6b603 utilize int.from_bytes 2013-08-29 18:33:50 -07:00
Benjamin Peterson
da0bea213d improve comment 2013-08-29 17:29:30 -04:00
Benjamin Peterson
f908efb75c make lists uniformly integers for the benefit of pypy 2013-08-29 17:27:57 -04:00
Gregory P. Smith
6cc50391a6 Fixes Issue #15507: test_subprocess's test_send_signal could fail if the test
runner were run in an environment where the process inherited an ignore
setting for SIGINT.  Restore the SIGINT handler to the desired
KeyboardInterrupt raising one during that test.
2013-08-29 13:39:44 -07:00
Gregory P. Smith
dee0434e2f Fixes issue #15507: test_subprocess's test_send_signal could fail if the test
runner were run in an environment where the process inherited an ignore
setting for SIGINT.  Restore the SIGINT handler to the desired
KeyboardInterrupt raising one during that test.
2013-08-29 13:35:27 -07:00
Tim Peters
2f43d07454 Null merge of 3.3 into default. 2013-08-29 12:35:37 -05:00
Charles-François Natali
f25f80c839 Merge. 2013-08-29 19:27:17 +02:00
Charles-François Natali
e33d5b0bc8 Merge. 2013-08-29 19:26:37 +02:00
Charles-François Natali
74b7408604 Issue #18643: Fix some test_socket failures due to large default socket buffer
sizes.
2013-08-29 19:02:23 +02:00
Charles-François Natali
5fd2642adb Issue #18643: Fix some test_socket failures due to large default socket buffer
sizes.
2013-08-29 19:01:40 +02:00
Richard Oudkerk
e0d25ce1fe Issue #8713: Print dangling processes/threads, if any. 2013-08-29 14:37:47 +01:00
Richard Oudkerk
83d7dea6aa Issue #8713: Cleanup before saving process._dangling. 2013-08-29 12:51:11 +01:00
Richard Oudkerk
968d05594e Issue #8713: Test should not print message about start method. 2013-08-29 12:41:19 +01:00
Serhiy Storchaka
de2800f8f1 Issue #17974: Switch unittest from using getopt to using argparse. 2013-08-29 12:37:28 +03:00
Serhiy Storchaka
64f7c4e4ca Issue #16799: Switched from getopt to argparse style in regrtest's argument
parsing.  Added more tests for regrtest's argument parsing.
2013-08-29 12:26:23 +03:00
Serhiy Storchaka
48e6a8c88a Issue #18743: Fix references to non-existant "StringIO" module
in docstrings and comments.
2013-08-29 11:39:48 +03:00
Serhiy Storchaka
50254c57cd Issue #18743: Fix references to non-existant "StringIO" module
in docstrings and comments.
2013-08-29 11:35:43 +03:00
Serhiy Storchaka
a8c2a8aa8d Issue #18760: Improved cross-references in the xml package. 2013-08-29 10:29:30 +03:00
Serhiy Storchaka
15e6590774 Issue #18760: Improved cross-references in the xml package. 2013-08-29 10:28:44 +03:00
Raymond Hettinger
afe890923f Tighten-up the lookkey() logic and beautify the code a bit.
Use less code by moving many of the steps from the initial
lookup into the main search loop.

Beautify the code but keep the overall logic unchanged.
2013-08-28 20:59:31 -07:00
Andrew Svetlov
7c1017bfee Fix tests for #11798 2013-08-29 01:24:39 +03:00
Andrew Svetlov
eb97368451 Issue #11798: TestSuite now drops references to own tests after execution. 2013-08-28 21:28:38 +03:00
Richard Oudkerk
6a53af893a Issue #18786: Don't reinstall old SIGUSR1 handler prematurely. 2013-08-28 13:50:19 +01:00
Victor Stinner
d98af985d0 (Merge 3.3) Fix @requires_freebsd_version and @requires_linux_version
decorators of test.support, run the test if the platform matchs!
2013-08-28 12:34:16 +02:00
Victor Stinner
d39dca9e33 Fix test_socket.test_SOCK_CLOEXEC(), the test was wrong 2013-08-28 12:28:18 +02:00
Victor Stinner
3b44a409de Fix @requires_freebsd_version and @requires_linux_version decorators of
test.support, run the test if the platform matchs!
2013-08-28 12:26:28 +02:00
Victor Stinner
bff989ed20 test_posix.test_pipe2() now checks that the O_NONBLOCK flag is set
Use also os.get_inheritable() instead of fcntl() to check the inheritable flag
(FD_CLOEXEC).
2013-08-28 12:25:40 +02:00
Victor Stinner
d72fe89b80 select.epoll.fromfd(fd) must be not change the inheritable flag of the file
descriptor
2013-08-28 12:22:39 +02:00
Victor Stinner
67973c0279 Issue #18865: remove unused import from multiprocessing.util.spawnv_passfds() 2013-08-28 12:21:47 +02:00
Richard Oudkerk
0d097b6299 Issue #18865: PEP 446 makes multiprocessing.util.pipe() unnecessary. 2013-08-28 11:25:34 +01:00