Commit Graph

54517 Commits

Author SHA1 Message Date
Benjamin Peterson 64ed576de8 merge 3.2 (#14509) 2012-04-09 15:04:39 -04:00
Benjamin Peterson ca819c3c9d merge 3.1 (#14509) 2012-04-09 15:01:02 -04:00
Benjamin Peterson f6622c8a3e fix build without Py_DEBUG and DNDEBUG (closes #14509) 2012-04-09 14:53:07 -04:00
Stefan Krah f69aef747a Resize the coefficient to MPD_MINALLOC also if the requested size is below
MPD_MINALLOC. Previously the resize was skipped as a micro optimization.
2012-04-09 20:47:57 +02:00
Vinay Sajip da29f8c915 Merged comment correction from 3.2. 2012-04-09 19:47:16 +01:00
Vinay Sajip 838e638a96 Corrected comment in cookbook example script. 2012-04-09 19:46:24 +01:00
Stefan Krah 0c0914edb0 _decimal is now 100x faster than the Python version in the pi benchmark. 2012-04-09 20:31:15 +02:00
Stefan Krah dd159ce606 Speed up _decimal by 30-40% for numerical workloads by improving the cache
locality for regularly sized coefficients.
2012-04-09 20:24:57 +02:00
Stefan Krah 94ef3e4c1d Use the MPD() accessor macro. 2012-04-09 19:20:46 +02:00
Antoine Pitrou b547d395ab Update description of benchmarks and mention the benchmarks repo 2012-04-09 17:06:44 +02:00
Antoine Pitrou d6aa5b30dd Fix whitespace 2012-04-09 17:04:14 +02:00
Antoine Pitrou 1584ae3987 Issue #13165: stringbench is now available in the Tools/stringbench folder.
It used to live in its own SVN project.
2012-04-09 17:03:32 +02:00
R David Murray 75d9aca97a Rename test_ file that is really a support file to remove test_ prefix.
I thought I had run the full test suite before the last checkin, but
obviously I didn't.  test_multibytecodec_support.py isn't really a test file,
it is a support file that contains a base test class.  Rename it to
multibytecodec_support so that regrtest test discovery doesn't think it is a
test file that should be run.
2012-04-09 09:37:52 -04:00
R David Murray f1cdb6086d Reflow paragraph (not that it helped much). 2012-04-09 09:12:57 -04:00
R David Murray 78fc25c77f #14533: if a test has no test_main, use loadTestsFromModule.
This moves us further in the direction of using normal unittest facilities
instead of specialized regrtest ones.  Any test module that can be correctly
run currently using 'python unittest -m test.test_xxx' can now be converted to
use normal unittest test loading by simply deleting its test_main, thus no
longer requiring manual maintenance of the list of tests to run.  (Not all
tests can be converted that easily, since test_main sometimes does some
additional things (such as reap_children or reap_threads).  In those cases the
extra code may be moved to setUpModule/tearDownModule methods, or perhaps the
same ends can be achieved in a different way, such as moving the decorators to
the test classes that need them, etc.)

I don't advocate going through and making this change wholesale, but any time
a list of tests in test_main would otherwise need to be updated, consideration
should instead be given to deleting test_main.
2012-04-09 08:55:42 -04:00
R David Murray b019ee752a #12537: in mailbox avoid depending on knowledge of email package internals
Previously mailbox was copying a list of attributes from one message object to
another in order to "copy the message data".  This means that any time new
attributes were added to email.message.Message, mailbox broke.  Now instead it
copies all attributes from the source object to the target object, skipping
any mailbox-object-specific attributes to produce the same clean initial
state it was previously getting by copying only the "known" attributes.

David Lam assisted in the development of this patch.
2012-04-08 22:36:07 -04:00
R David Murray c988e24240 Remove redundancy in listing of all mailbox classes in test_mailbox. 2012-04-08 21:00:27 -04:00
Antoine Pitrou 409d0a9e47 Null merge 2012-04-09 01:41:00 +02:00
Antoine Pitrou c0aa9eeb90 Fix the patch for issue #7978: select() raises select.error before 3.3, not OSError. 2012-04-09 01:37:19 +02:00
Antoine Pitrou 0ec2c075a2 Fix flakiness in test_socketserver 2012-04-09 01:18:07 +02:00
Antoine Pitrou f18d6f3f44 Fix flakiness in test_socketserver 2012-04-09 01:16:47 +02:00
Antoine Pitrou c9e8e3c4dd Issue #7978: socketserver now restarts the select() call when EINTR is returned.
This avoids crashing the server loop when a signal is received.
Patch by Jerzy Kozera.
2012-04-09 00:49:17 +02:00
Antoine Pitrou b0a9c66a49 Issue #7978: socketserver now restarts the select() call when EINTR is returned.
This avoids crashing the server loop when a signal is received.
Patch by Jerzy Kozera.
2012-04-09 00:47:24 +02:00
R David Murray f998810deb Merge: Make test_mailbox runnable via python -m unittest. 2012-04-08 18:35:35 -04:00
R David Murray 317c8d257e Make test_mailbox runnable via python -m unittest. 2012-04-08 16:46:18 -04:00
Kristján Valur Jónsson e638513856 Remove unused variable from gcmodule.c. The code no longer tests for the
presence of a __del__ attribute on objects, rather it uses the tp_del slot.
2012-04-08 13:56:25 +00:00
Vinay Sajip 452806c8e3 Merged logging cookbook update from 3.2. 2012-04-08 01:51:29 +01:00
Vinay Sajip 0292fa99ef Added multiprocessing example to logging cookbook. 2012-04-08 01:49:12 +01:00
Antoine Pitrou df97cbe7a1 Issue #14522: Avoid duplicating socket handles in multiprocessing.connection.
Patch by sbt.
2012-04-07 22:38:52 +02:00
Kristján Valur Jónsson 52a11f1f46 Issue #14310: Catch testing errors when trying to create unsupported socket
types on some platforms.
2012-04-07 20:38:44 +00:00
Brett Cannon 8798ad3e1e struct timeval.tv_usec is 4 bytes on 64-bit OS X as it should be, but
is defined as an int while everyone else expects a long regardless of
length.
2012-04-07 14:59:29 -04:00
Georg Brandl 014397e981 Determine opensearch URL from current version. 2012-04-07 19:24:40 +02:00
Georg Brandl 30e4ca45ad Closes #14511: merge with 3.2 2012-04-07 19:23:00 +02:00
Georg Brandl 3abebca780 Closes #14511: fix wrong opensearch link for 3.2 docs. 2012-04-07 19:22:17 +02:00
Stefan Krah 1bcb138cf2 Merge. 2012-04-07 16:10:04 +02:00
Stefan Krah dc36efa368 1) Fix comment.
2) Assert that the source operand is not special. Prevent resulting assert
   failure (harmless) by initializing flags before calling mpd_qshiftr_inplace.

3) Save a couple of instructions (mpd_zerocoeff already sets digits and len).
   Reorder initialization to match the order in the mpd_t struct.
2012-04-07 15:57:59 +02:00
Kristján Valur Jónsson 10f383a937 Issue #14310: inter-process socket duplication for windows 2012-04-07 11:23:31 +00:00
Ross Lagerwall 0f9eec19ee Don't Py_DECREF NULL variable in io.IncrementalNewlineDecoder.
Found with Clang's Static Analyzer.
2012-04-07 07:09:57 +02:00
Benjamin Peterson c1b34a36f8 merge 3.2 2012-04-06 13:20:49 -04:00
Benjamin Peterson 403bb39d1d merge heads 2012-04-06 13:20:39 -04:00
Benjamin Peterson 049208635d merge heads 2012-04-06 13:20:25 -04:00
Benjamin Peterson 161aece9d3 merge 3.2 2012-04-06 13:20:16 -04:00
Benjamin Peterson dcb89f4f09 port 3.1.5rc2 tag 2012-04-06 13:20:01 -04:00
Benjamin Peterson 718a8e8140 merge 3.1 2012-04-06 13:19:52 -04:00
Benjamin Peterson 7fddb4b2f6 Added tag v3.1.5 for changeset 7395330e495e 2012-04-06 13:17:30 -04:00
Benjamin Peterson c37a4fdf54 bump to 3.1.5 final 2012-04-06 13:17:25 -04:00
Brett Cannon d62cd5627f Issue #14500: Fix importlib.test.import_.test_packages to clean up
after itself properly.
2012-04-06 13:13:08 -04:00
Brett Cannon 83c02ee8e8 merge 2012-04-06 12:54:57 -04:00
Kristján Valur Jónsson b2e58185e5 Set a time threshold in test_asyncore.capture_server so that tests don't
deadlock if the main thread fails before sending all the data.
2012-04-06 14:37:45 +00:00
Sandro Tosi f3be68e0a8 Issue #14502: it's RuntimeError on 3.3 2012-04-06 11:15:06 +02:00