Commit graph

1188 commits

Author SHA1 Message Date
Gregory P. Smith
d02eedacab Issue #4751: For hashlib algorithms provided by OpenSSL, the Python
GIL is now released during computation on data lengths >= 2048 bytes.
2009-05-04 00:16:49 +00:00
Michael Foord
07ef487a96 2009-05-02 22:43:34 +00:00
Benjamin Peterson
2b42c29a50 add myself 2009-05-02 20:26:53 +00:00
Michael Foord
e2fb98f467 Add addCleanup and doCleanups to unittest.TestCase.
Closes issue 5679.

Michael Foord
2009-05-02 20:15:05 +00:00
Michael Foord
829f6b8052 Adds an exit parameter to unittest.main(). If False main no longer
calls sys.exit.

Closes issue 3379.

Michael Foord
2009-05-02 11:43:06 +00:00
Georg Brandl
24cc78ac61 Fix directive name. 2009-05-01 21:30:25 +00:00
Georg Brandl
b64b8278d1 Review ipaddr docs and add them in the TOC under "Internet protocols". 2009-05-01 21:28:35 +00:00
Gregory P. Smith
1d499265e0 Adds the ipaddr module to the standard library. Issue #3959.
Based off of subversion r69 from http://code.google.com/p/ipaddr-py/

This code is 2to3 safe, I'll merge it into py3k later this afternoon.
2009-05-01 19:59:52 +00:00
Walter Dörwald
6733bed57e Make test.test_support.EnvironmentVarGuard behave like a dictionary.
All changes are mirrored to the underlying os.environ dict, but rolled back
on exit from the with block.
2009-05-01 17:35:37 +00:00
R. David Murray
b01c6e53ed Make the turtle.rst doctests pass. I have a feeling there should be
more cleanup, but I don't know now to kill turtles.  Especially
unexpected ones... ;)
2009-04-30 12:42:32 +00:00
Georg Brandl
f6dab9542c Make the doctests in the docs pass, except for those in the turtle module. 2009-04-28 21:48:35 +00:00
R. David Murray
3b23c9c516 Remove spurious 'u'. 2009-04-28 19:02:55 +00:00
R. David Murray
636b23a96f Various small fixups to the multiprocessing docs, mostly fixing and
enabling doctests that Sphinx can run, and fixing and disabling tests that
Sphinx can't run.  I hand checked every test not now marked as a doctest,
and all except the two that have open bug reports against them now work,
at least on Linux/trunk. (I did not look at the last example at all since
there was already an open bug).  I did not read the whole document with
an editor's eye, but I did fix a few things I noticed while working on
the tests.
2009-04-28 16:08:18 +00:00
Raymond Hettinger
8b8f8cc1b0 Add example to the seealso section. 2009-04-27 21:12:54 +00:00
R. David Murray
ec047e0725 Make sys.xxx variable references into links, note that print_last only
works when an exception gets to the interactive prompt, and update the
examples after testing.  The last one is now a valid Sphinx doctest,
but of the preceding two one can't be made a doctest and the other one
I'm postponing to 3.x because sphinx handles doctests as Unicode strings
and that makes the 2.x output confusing.
2009-04-27 17:22:36 +00:00
Georg Brandl
9bc668251f #5848: small unittest doc patch. 2009-04-27 17:04:23 +00:00
Georg Brandl
b44c9f357d Demote warnings to notices, part 2: stuff that is 2.x-only. 2009-04-27 15:29:26 +00:00
Georg Brandl
16a57f6a34 Demote warnings to notices where appropriate, following the goal that as few "red box" warnings
should clutter the docs as possible.  Part 1: stuff that gets merged to Py3k.
2009-04-27 15:29:09 +00:00
Georg Brandl
e1b79ce17e #5856: fix typo s in traceback example. 2009-04-27 15:09:25 +00:00
Georg Brandl
208b00d03f #5841: add deprecation py3k warning and notice in the docs for commands module. 2009-04-25 15:11:29 +00:00
Georg Brandl
cf5608df81 #5821: add some capabilities of TarFile's file-like object. 2009-04-25 15:05:04 +00:00
Georg Brandl
64034bbf84 #5834: use "failure" instead of "error" because the two have different meanings in unittest context. 2009-04-25 14:51:31 +00:00
Georg Brandl
69923a1df6 #5813: add a reference to the "future statements" section. 2009-04-23 08:49:56 +00:00
Georg Brandl
95089bc9bf Fix rewrapping accident. 2009-04-23 08:49:39 +00:00
Georg Brandl
49cc4eafcb #5820: fix bug in usage of getreader(). 2009-04-23 08:44:57 +00:00
Mark Dickinson
8100bd8431 Issue #5812: make Fraction('1e-6') valid. Backport of r71806. 2009-04-22 18:15:25 +00:00
Nick Coghlan
5533ff6a2e Issue 5354: Change API for import_fresh_module() to better support test_warnings use case (also fixes some bugs in the original implementation) 2009-04-22 15:26:04 +00:00
Eric Smith
4c074382bd Documentation for issue 5237, auto-numbered format fields. Contributed by Terry J. Reedy. 2009-04-22 00:47:00 +00:00
Georg Brandl
e56101136c #5751: fix escaping of \\n. 2009-04-21 18:24:34 +00:00
Georg Brandl
ce54356690 #5757: fix copy-paste error in notify(). 2009-04-21 18:23:08 +00:00
Raymond Hettinger
cccfc825e4 Fix typo 2009-04-20 18:23:57 +00:00
Raymond Hettinger
76162e305c Clarify the behavior of any() and all() with an empty iterable. 2009-04-16 18:16:10 +00:00
R. David Murray
7203081025 Less red ink (warning->note) and add link to def of side-by-side assembly. 2009-04-16 18:12:53 +00:00
R. David Murray
6076d399b4 Fix for issue3440: add warning to subprocess discussion of
env parameter that on Windows SystemRoot is required in order
to run side-by-side assemblies.
2009-04-15 22:33:07 +00:00
Benjamin Peterson
5c9914899b tupel -> tuple 2009-04-14 21:23:09 +00:00
Georg Brandl
b48327a215 #5745: more linking for identifiers in email docs. 2009-04-13 13:13:25 +00:00
Hirokazu Yamamoto
4585746fb0 Fixed another typos. (email.Utils => email.utils) 2009-04-13 01:21:56 +00:00
Hirokazu Yamamoto
3bd4058d82 Fixed typo. (email.Utils => email.utils) 2009-04-13 01:07:06 +00:00
Benjamin Peterson
a9feadc0dd fix missing quote 2009-04-12 23:44:15 +00:00
Benjamin Peterson
7bedd625df fix extra parenthesis #5774 2009-04-12 23:19:56 +00:00
Nick Coghlan
cd2e7042ae Issue 5354: Provide a standardised testing mechanism for doing fresh imports of modules, including the ability to block extension modules in order to test the pure Python fallbacks 2009-04-11 13:31:31 +00:00
Raymond Hettinger
f0f475da61 Add examples. 2009-04-10 13:16:50 +00:00
Raymond Hettinger
c4f4697196 Fix the count of datatypes. 2009-04-10 06:38:39 +00:00
Raymond Hettinger
f368fbc24e Clarify the table entries for combinatorics. 2009-04-10 04:25:45 +00:00
Raymond Hettinger
c473c5aa9b Add note on using keyword arguments with OrderedDict. 2009-04-09 22:31:51 +00:00
Andrew M. Kuchling
5963185b23 Typo fixes 2009-04-09 11:23:36 +00:00
Michael Foord
f2dfef1637 Adding assertIs and assertIsNot methods to unittest.TestCase
Issue #2578
2009-04-05 19:19:28 +00:00
Georg Brandl
a7ec0726e2 #5370: doc update about unpickling objects with custom __getattr__ etc. methods. 2009-04-05 14:40:06 +00:00
Georg Brandl
5d19610f8d #1718017: document the relation of os.path and the posixpath, ntpath etc. modules better. 2009-04-05 10:41:02 +00:00
Georg Brandl
75f1107b7c Avoid sure signs of a diseased mind. 2009-04-05 10:32:26 +00:00