Commit graph

3716 commits

Author SHA1 Message Date
Vinay Sajip
8bf2aea962 Merged updates to logging reference and HOWTO from 3.2. 2012-04-10 20:00:43 +01:00
Vinay Sajip
074faff925 Updated logging reference and HOWTO. 2012-04-10 19:59:50 +01:00
Senthil Kumaran
9deb188799 merge - minor .rst fix 2012-04-10 19:51:58 +08:00
Senthil Kumaran
cc4979092f minor .rst fix 2012-04-10 19:51:00 +08: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
Kristján Valur Jónsson
10f383a937 Issue #14310: inter-process socket duplication for windows 2012-04-07 11:23:31 +00:00
Sandro Tosi
f3be68e0a8 Issue #14502: it's RuntimeError on 3.3 2012-04-06 11:15:06 +02:00
Benjamin Peterson
e0029baba6 merge 3.2 2012-04-05 22:57:10 -04:00
Sandro Tosi
5d1c2f0702 Issue #14502: merge with 3.2 2012-04-05 22:53:21 +02:00
Sandro Tosi
fee3fc748e Issue #14502: release() and unlocked lock generates a ThreadError 2012-04-05 22:51:54 +02:00
Georg Brandl
9a13b432e7 Replace ThreadError by RuntimeError: the former is now an obsolete alias of the latter. 2012-04-05 09:53:04 +02:00
R David Murray
395c879da7 Merge #14481: fix formatting of example in subprocess docs. 2012-04-03 08:47:14 -04:00
R David Murray
28b8b94760 #14481: fix formatting of example in subprocess docs. 2012-04-03 08:46:48 -04:00
Georg Brandl
283b96b6bd Move ChainMap versionadded to be less ambiguous. 2012-04-03 09:16:46 +02:00
Victor Stinner
30d79471bb Expose clock_settime() as time.clock_settime() 2012-04-03 00:45:07 +02:00
Victor Stinner
1470f35bc6 Add time.CLOCK_HIGHRES constant, needed on Solaris 2012-04-03 00:31:17 +02:00
Georg Brandl
24891672ce Fix markup errors found by "make suspicious". 2012-04-01 13:48:26 +02:00
Antoine Pitrou
8bbe9b4390 Fix formatting 2012-03-31 21:09:53 +02:00
Antoine Pitrou
682d443e01 Issue #14456: improve documentation of the signal module w.r.t. threads. 2012-03-31 21:09:00 +02:00
Antoine Pitrou
6afd11c762 Issue #14456: improve documentation of the signal module w.r.t. threads. 2012-03-31 20:56:21 +02:00
Sandro Tosi
4cc229ad65 merge with 3.2 2012-03-31 18:35:16 +02:00
Sandro Tosi
317075de29 use unittest.skip; thanks to Chang Min Jeon from docs@ 2012-03-31 18:34:59 +02:00
Sandro Tosi
dc60f940b5 merge with 3.2 2012-03-31 17:44:33 +02:00
Sandro Tosi
9ee65f1f92 add 'safari' to webbrowser browsers table; thanks to Jonathan Eunice from docs@ 2012-03-31 17:23:10 +02:00
Andrew Svetlov
69c2ffa3f3 issue #3035: update PendingDeprecationWarning to DeprectionWarning, point deprecation in tkinter doc 2012-03-31 14:55:55 +03:00
R David Murray
3288e948f3 Merge #10423: clarify options vs args in argparse discussion of optparse
Patch by Sandro Tosi.
2012-03-30 18:08:29 -04:00
R David Murray
5e0c57142d #10423: clarify options vs args in argparse discussion of optparse
Patch by Sandro Tosi.
2012-03-30 18:07:42 -04:00
Eli Bendersky
c1d9869cb9 Issue #14006: improve the documentation of xml.etree.ElementTree
Removed the useless explanation of the Element data structure that started the
documentation page. Instead, the documentation now starts with a brief tutorial
skimming some of the capabilities of the module. The tutorial can be followed
by additional topic-specific sections (such as XPath support), and eventually
by a reference that goes over the module's classes and functions, as usual.
2012-03-30 11:44:15 +03:00
Michael Foord
e55f6636cc Fix typo in unittest.mock docs 2012-03-29 13:46:50 +01:00
R David Murray
eac0939ddd #14416: conditionally add LOG_AUTHPRIV facility and LOG_ODELAY to syslog.
Unlike the other facilities, we don't use a fallback for AUTHPRIV if it
doesn't exist.  Because it is intended for logging sensitive log messages, it
is better that a program trying to log such messages fail than that it log
them insecurely.

Initial patch by Federico Reghenzani.
2012-03-29 07:15:45 -04:00
R David Murray
8c696321eb Merge #14416: add missing LOG_SYSLOG facility to syslog docs. 2012-03-29 06:49:29 -04:00
R David Murray
07cf1d8085 #14416: add missing LOG_SYSLOG facility to syslog docs. 2012-03-29 06:47:35 -04:00
Georg Brandl
909f5bc849 Fix newlines. 2012-03-29 09:18:14 +02:00
Michael Foord
324b58bf18 Update unittest.mock.patch example 2012-03-28 15:49:08 +01:00
Michael Foord
2309ed861a Re-order unittest.mock documentation to put magic method support before the helpers 2012-03-28 15:38:36 +01:00
Michael Foord
901553668a Adding an example to unittest.mock.patch documentation 2012-03-28 15:32:08 +01:00
Michael Foord
54b3db8c84 Minor unittest.mock.patch doc / docstring improvement 2012-03-28 15:08:08 +01:00
Michael Foord
a9e6fb201d Unsplit unittest.mock documentation 2012-03-28 14:36:02 +01:00
Eli Bendersky
ede001a832 Fix doc typo noticed by Amaury Forgeot d'Arc 2012-03-27 04:57:23 +02:00
Eli Bendersky
3a4875e5e3 Issue #6488: Explain the XPath support of xml.etree.ElementTree, with code
samples and a reference. Also fix the other nits mentioned in the issue.

This also partially addresses issue #14006.
2012-03-26 20:43:32 +02:00
Sandro Tosi
70ea34de85 Issue #14410: merge with 3.2 2012-03-26 19:36:44 +02:00
Sandro Tosi
99e7d0706e Issue #14410: fix typo in argparse doc; patch by Tshepang Lekhonkhobe 2012-03-26 19:36:23 +02:00
Vinay Sajip
38a12af36a Updated handler documentation. 2012-03-26 17:17:39 +01:00
Vinay Sajip
8ece80faae Minor documentation tweak. 2012-03-26 17:09:58 +01:00
Michael Foord
944e02d055 Adding unittest.mock documentation 2012-03-25 23:12:55 +01:00
Andrew Svetlov
1d5617958f Remove extra spaces in doc example. 2012-03-25 11:44:59 +03:00
Eli Bendersky
60ee04969e Issue #14349: Fix the doc of the MAKE_FUNCTION opcode in Doc/library/dis.rst to
correctly list the stack params it expects.
2012-03-24 18:52:45 +02:00
Georg Brandl
226ed7ecbd Fix indentation. 2012-03-24 08:12:41 +01:00
Stefan Krah
b6405efd1b Use the same exception hierarchy as decimal.py. FloatOperation now also
inherits from TypeError. Cleanup in module initialization to make repeated
import failures robust.
2012-03-23 14:46:48 +01:00