Commit graph

17303 commits

Author SHA1 Message Date
Eli Bendersky
e8de29669d Remove unused --debug option of regrtest.
If bots fail due to using this flag, the buildbot scripts have to be modified
to omit it. Regrtest ignores it anyway.
2013-09-02 17:01:10 -07:00
Eli Bendersky
e5eebedd55 Fix docstring and some indentation 2013-09-02 16:52:25 -07:00
Eli Bendersky
7f5c22c022 Refactor the main function of regrtest a bit.
Moving subprocess execution of tests into a function.
2013-09-02 08:57:21 -07:00
Ethan Furman
a661f4531e Close #18745: Improve enum tests in test_json for infinities and NaN. 2013-09-02 01:14:56 -07:00
Antoine Pitrou
625eed765a test_threading isn't rudimentary anymore 2013-09-01 19:52:08 +02:00
Antoine Pitrou
4c8ce847e6 test_threading isn't rudimentary anymore 2013-09-01 19:51:49 +02:00
Victor Stinner
f6fa22efe0 Issue #18571: Merge duplicate test code
Merge test/subprocessdata/inherited.py into test/subprocessdata/fd_status.py
2013-09-01 10:22:41 +02:00
Andrew Svetlov
8913a6c83d Issue #11798: fix tests for regrtest -R : 2013-09-01 07:58:41 +03:00
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
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
Ethan Furman
13bdfa7a7f Issue #18780: code cleanup. 2013-08-31 12:48:51 -07: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
Charles-François Natali
fcfb324e81 Use the recent support.HOSTv6 addition. 2013-08-31 14:40:49 +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
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
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
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
Andrew Svetlov
7c1017bfee Fix tests for #11798 2013-08-29 01:24:39 +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
daf455554b Issue #18571: Implementation of the PEP 446: file descriptors and file handles
are now created non-inheritable; add functions os.get/set_inheritable(),
os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
2013-08-28 00:53:59 +02:00
Serhiy Storchaka
46e1ce214b Issue #18783: Removed existing mentions of Python long type in docstrings,
error messages and comments.
2013-08-27 20:17:03 +03:00
Serhiy Storchaka
9594942716 Issue #18783: Removed existing mentions of Python long type in docstrings,
error messages and comments.
2013-08-27 19:40:23 +03:00
Victor Stinner
14e461d5b9 Close #11619: The parser and the import machinery do not encode Unicode
filenames anymore on Windows.
2013-08-26 22:28:21 +02:00
Ezio Melotti
ec42975bc6 #18833: merge with 3.3. 2013-08-26 00:17:21 +03:00
Ezio Melotti
4f1353ab10 #18833: add a test for test_telnetlib. Patch by Alex Volkov. 2013-08-25 23:56:43 +03:00
Antoine Pitrou
7eaf3f7080 Issue #18808: Non-daemon threads are now automatically joined when a sub-interpreter is shutdown (it would previously dump a fatal error). 2013-08-25 19:48:18 +02:00
Charles-François Natali
a439b32cf0 Merge. 2013-08-25 18:28:44 +02:00
Charles-François Natali
c20a7b977e Merge. 2013-08-25 18:27:59 +02:00
Charles-François Natali
249cdc39fc Issue #18763: subprocess: The file descriptors are now closed after calling the
preexec_fn callback, which may open file descriptors.
2013-08-25 18:24:45 +02:00
R David Murray
0cb8e5131d Merge #16611: BaseCookie now parses 'secure' and 'httponly' flags. 2013-08-25 11:09:45 -04:00