Tim Peters
c6171e49ab
Merge 3.3 into default.
...
cwr_next(): move invariants out of loops.
This simplifies and clarifies the code, and gives a small speedup.
2013-09-03 11:52:59 -05:00
Tim Peters
9edb168dd7
cwr_next(): move invariants out of loops.
...
This simplifies and clarifies the code, and gives a small speedup.
2013-09-03 11:49:31 -05:00
Eli Bendersky
207fe01187
Issue #18912 : Fix indentation in docstring
...
Contributed by Jeroen Van Goey
2013-09-03 06:38:55 -07:00
Eli Bendersky
c554f725a0
Issue #18912 : Fix indentation in docstring
...
Contributed by Jeroen Van Goey
2013-09-03 06:37:19 -07:00
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
Raymond Hettinger
c56e0e3980
Minor touchups.
2013-09-02 16:32:27 -07:00
Raymond Hettinger
69492dab07
Factor-out the common code for setting a KeyError.
2013-09-02 15:59:26 -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
Raymond Hettinger
a35adf5b09
Instead of XORed indicies, switch to a hybrid of linear probing and open addressing.
...
Modern processors tend to make consecutive memory accesses cheaper than
random probes into memory.
Small sets can fit into L1 cache, so they get less benefit. But they do
come out ahead because the consecutive probes don't probe the same key
more than once and because the randomization step occurs less frequently
(or not at all).
For the open addressing step, putting the perturb shift before the index
calculation gets the upper bits into play sooner.
2013-09-02 03:23: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
Terry Jan Reedy
51bae475e8
Merge with 3.3
2013-09-01 19:04:18 -04:00
Terry Jan Reedy
a0f482a7ff
Remove obsolete .hgeol entry pointing to file moved elsewhere.
...
This kine was already replaced by
Lib/test/test_email/data/msg_26.txt = BIN
which is just below the last line in the patch context.
2013-09-01 19:03:41 -04:00
Tim Peters
56dadf7d02
Merge fix from 3.3 into default.
...
Fix issue 18889: test_sax: multiple failures on Windows desktop.
"The fix" is to tell Mercurial that the test files are binary.
Windows developers: to get the correct line endings in your checkout,
delete Lib\test\xmltestdata, and then "hg revert" that directory.
Why the Windows buildbots didn't fail test_sax remains a mystery :-(
2013-09-01 16:01:46 -05:00
Tim Peters
9d2e3a1e2f
Fix issue 18889: test_sax: multiple failures on Windows desktop.
...
"The fix" is to tell Mercurial that the test files are binary.
Windows developers: to get the correct line endings in your checkout,
delete Lib\test\xmltestdata, and then "hg revert" that directory.
Why the Windows buildbots didn't fail test_sax remains a mystery :-(
2013-09-01 15:56:22 -05: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
Tim Peters
59360aadd3
Back out 868ad6fa8e68 - it left all the buildbots failing.
...
Unclear to me why it was pushed to begin with. See issue 11798.
Perhaps it's because regrtest with -R was failing? Fine, but
that's better than regrtest _always_ failing ;-)
2013-08-31 23:44:34 -05:00
Raymond Hettinger
6c3c1ccd1b
Update copyright.
2013-08-31 21:34:24 -07:00
Raymond Hettinger
264683ef0a
merge
2013-08-31 21:28:58 -07:00
Raymond Hettinger
95c0d67581
Further reduce the cost of hash collisions by inspecting an additional nearby entry.
2013-08-31 21:27:08 -07: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
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