Antoine Pitrou
7430989cda
Isue #5084 : unpickling now interns the attribute names of pickled objects,
...
saving memory and avoiding growth in size of subsequent pickles. Proposal
and original patch by Jake McGuire.
2009-05-02 21:13:23 +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
Andrew M. Kuchling
420d4eb1f3
#1607951 : Make mailbox.Maildir re-read the directories less frequently.
...
This is done by recording the current time -1sec, and not re-reading unless
the directory mod. times are >= the recorded time.
2009-05-02 19:17:28 +00:00
Gregory P. Smith
6e7bdde2c8
Convert test method names to PEP8 style.
2009-05-02 18:58:21 +00:00
Mark Dickinson
d4b5c98fa6
Remove unnecessary use of context for long getters.
...
(Related to issue #5880 ).
2009-05-02 17:55:01 +00:00
Benjamin Peterson
bf6c410b2e
revert unrelated change
2009-05-02 17:35:39 +00:00
Benjamin Peterson
6282169142
remove py3k compat code
2009-05-02 17:33:01 +00:00
Andrew M. Kuchling
92b970037b
Add items
2009-05-02 17:12:15 +00:00
Benjamin Peterson
d7e8e3444f
don't let sys.argv be used in the tests
2009-05-02 16:24:37 +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
Eric Smith
27f204dc29
Keep py3k and trunk code in sync.
2009-05-02 09:58:09 +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
Antoine Pitrou
3fd4ea9dab
Issue #5726 : Make Modules/ld_so_aix return the actual exit code of the linker, rather than always exit successfully.
...
Patch by Floris Bruynooghe.
2009-05-01 21:16:14 +00:00
Antoine Pitrou
1fc0231a22
Issue #3002 : `shutil.copyfile()` and `shutil.copytree()` now raise an
...
error when a named pipe is encountered, rather than blocking infinitely.
2009-05-01 20:55: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
Georg Brandl
ca87fa5a5b
#5889 : remove comma at the end of a list that some C compilers don't like.
2009-05-01 08:51:37 +00:00
Senthil Kumaran
4af40d2173
Fix for Issue1648102, based on the MSDN spec: If this parameter specifies the
...
"<local>" macro as the only entry, this function bypasses any host name that
does not contain a period.
2009-05-01 05:59:52 +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
Eric Smith
9139cc6a3b
Issue #1588 : Add complex.__format__.
2009-04-30 00:58:58 +00:00
Benjamin Peterson
2518d3c1c0
prevent ref cycles by removing bound method on close()
2009-04-30 00:23:11 +00:00
Benjamin Peterson
7c7250da45
make sure to close file
2009-04-30 00:06:33 +00:00
Benjamin Peterson
a9b4d4777a
make sure mode is removable while cleaning up test droppings
2009-04-29 22:44:15 +00:00
Georg Brandl
8c5326f103
#5878 : fix repr of re object.
2009-04-29 22:44:07 +00:00
Benjamin Peterson
9c6fc5187f
fix test_shutil on ZFS #5676
2009-04-29 22:43:35 +00:00
Mark Dickinson
61a0d05291
Backport some of the float formatting tests from py3k.
2009-04-29 21:57:15 +00:00
Mark Dickinson
df108ca324
Remove format_float and use _PyOS_double_to_string instead.
2009-04-29 21:56:53 +00:00
Mark Dickinson
92fcc9c991
Issue #5864 : format(1234.5, '.4') gives misleading result
...
(Backport of r72109 from py3k.)
2009-04-29 20:41:00 +00:00
Benjamin Peterson
867475c970
run autoconf
2009-04-29 20:36:25 +00:00
R. David Murray
0f457e5825
More aifc tests.
2009-04-29 20:15:18 +00:00
Matthias Klose
61dbdb9677
- configure.in: Don't error, when no --with-dbmliborder option is present
2009-04-29 20:09:50 +00:00
Matthias Klose
51c614e3bf
- Issue #4587 : Add configure option --with-dbmliborder=db1:db2:... to specify
...
the order that backends for the dbm extension are checked.
2009-04-29 19:52:49 +00:00
Matthias Klose
10cbe4886e
- Issue #4587 : Add configure option --with-dbmliborder=db1:db2:... to specify
...
the order that backends for the dbm extension are checked.
2009-04-29 17:18:19 +00:00
R. David Murray
971b1b100b
Now that we've got a test_aifc, add a few tests.
2009-04-29 13:51:44 +00:00
R. David Murray
25b4add5b0
Fix issue 2245. aifc now skips any chunk type it doesn't actually
...
process instead of throwing errors for anything not in an explicit
skip list. This is per this spec: http://www.cnpbagwell.com/aiff-c.txt .
Spec reference and test sound file provided by Santiago Peresón, fix
based on patch by Hiroaki Kawai.
2009-04-29 13:17:37 +00:00
Tarek Ziadé
a1b91d944b
Fixed #5874 : distutils.tests.test_config_cmd is not locale-sensitive anymore
2009-04-29 08:03:46 +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
Thomas Heller
90c61a2e09
Issue #4305 : ctypes fails to build on mipsel-linux-gnu (detects mips
...
instead of mipsel)
2009-04-28 19:23:41 +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
Eric Smith
94cc00ce4d
Silence warning on Windows.
2009-04-28 07:33:09 +00:00
Antoine Pitrou
e988e286b2
Issue #1734234 : Massively speedup `unicodedata.normalize()` when the
...
string is already in normalized form, by performing a quick check beforehand.
Original patch by Rauli Ruohonen.
2009-04-27 21:53:26 +00:00
Raymond Hettinger
8b8f8cc1b0
Add example to the seealso section.
2009-04-27 21:12:54 +00:00
Raymond Hettinger
a016debad0
Update spec version number.
2009-04-27 21:12:27 +00:00
Antoine Pitrou
f2651e193c
Issue #5853 : calling a function of the mimetypes module from several threads
...
at once could hit the recursion limit if the mimetypes database hadn't been
initialized before.
2009-04-27 20:50:20 +00:00
Eric Smith
cac7af6863
Issue #5793 : rationalize isdigit / isalpha / tolower, etc. Will port to py3k. Should fix Windows buildbot errors.
2009-04-27 19:04:37 +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
2622b549d7
#5840 : dont claim we dont support TLS.
2009-04-27 17:09:53 +00:00