Commit graph

36585 commits

Author SHA1 Message Date
Guido van Rossum
ab8802a4f7 Fix warnings about object.__init__() signature.
Two (test_array and test_descr) were bug IMO; the third (copy_reg)
is a work-around which recognizes that object.__init__() doesn't do
anything.
2007-04-02 23:55:37 +00:00
Raymond Hettinger
01a807db2a Array module's buffer interface can now handle empty arrays. 2007-04-02 22:54:21 +00:00
Raymond Hettinger
e6e660bde3 SF #1693079: Cannot save empty array in shelve 2007-04-02 17:29:30 +00:00
Georg Brandl
5447850f6f Fix the class name of strings. 2007-04-01 23:31:30 +00:00
Georg Brandl
5f4c580776 Remove bogus entry. 2007-04-01 23:29:10 +00:00
Georg Brandl
30d6c04696 Some semantic fixes. 2007-04-01 22:47:31 +00:00
Georg Brandl
6ec04ffc5d Explicit class names. 2007-04-01 22:40:12 +00:00
Georg Brandl
ae91afdcfb Lots of explicit class names for method and member descs. 2007-04-01 22:39:10 +00:00
Georg Brandl
b8e8df2e63 Another fix. 2007-04-01 21:39:52 +00:00
Georg Brandl
4e9165d2dd Fix a lot of markup and meta-information glitches. 2007-04-01 21:29:15 +00:00
Brett Cannon
c7a2e4656e Fix the test for recreating the locale cache object by not worrying about if
one of the test locales cannot be set.
2007-04-01 19:46:19 +00:00
Brett Cannon
c69066501b time.strptime's caching of its locale object was being recreated when the
locale changed but not used during the function call it was recreated during.

The test in this checkin is untested (OS X does not have the proper locale
support for me to test), although the fix for the bug this deals with
was tested by the OP (#1290505).  Once the buildbots verify the test at least
doesn't fail it becomes a backport candidate.
2007-04-01 18:47:27 +00:00
Neal Norwitz
8f35f44af3 SF #1685563, MSVCCompiler creates redundant and long PATH strings
If MSVCCompiler.initialize() was called multiple times, the path
would get duplicated.  On Windows, this is a problem because the
path is limited to 4k.  There's no benefit in adding a path multiple
times, so prevent that from occuring.  We also normalize the path
before checking for duplicates so things like /a and /a/ won't both
be stored.

Will backport.
2007-04-01 18:24:22 +00:00
Collin Winter
1520fe4e58 Shut up an occaisonal buildbot error due to test files being left around. 2007-03-31 19:31:34 +00:00
Georg Brandl
db84603760 Bug #1655392: don't add -L/usr/lib/pythonX.Y/config to the LDFLAGS
returned by python-config if Python was built with --enable-shared
because that prevented the shared library from being used.
2007-03-31 18:56:11 +00:00
Neal Norwitz
ea3307bf3f Fix method names. Will backport. 2007-03-31 18:54:18 +00:00
Georg Brandl
43445315ae Typo fix. 2007-03-31 11:59:54 +00:00
Georg Brandl
dc580bd821 Duplicate label fix. 2007-03-31 11:58:36 +00:00
Georg Brandl
5201364de5 Markup fix. 2007-03-31 11:54:58 +00:00
Georg Brandl
b8b88743a8 repair string literal. 2007-03-31 10:17:31 +00:00
Georg Brandl
8c09b14978 Markup fix. 2007-03-30 19:14:02 +00:00
Georg Brandl
92a9fc0a2f Duplicate label fix. 2007-03-30 19:01:38 +00:00
Andrew M. Kuchling
588a95d594 Add item. (Oops, accidentally checked this in on my branch) 2007-03-30 18:00:15 +00:00
Georg Brandl
f3c123d82d Markup fix. 2007-03-30 17:48:39 +00:00
Georg Brandl
bc7d71a8fd Duplicate label fix. 2007-03-30 17:47:21 +00:00
Georg Brandl
749757329a Label name fix. 2007-03-30 17:39:39 +00:00
Georg Brandl
459ef66f6e Markup fix. 2007-03-30 15:49:05 +00:00
Marc-André Lemburg
2365fcde60 Bump the patch level version of distutils since there were a few bug fixes since
the 2.5.0 release.
2007-03-30 15:01:42 +00:00
Collin Winter
d4a0118029 Bug #1688274: add documentation for C-level class objects. 2007-03-30 14:01:25 +00:00
Facundo Batista
93c33680a0 Added the posibility to pass the timeout to FTP.connect, not only when
instantiating the class. Docs and tests are updated.
2007-03-30 13:00:35 +00:00
Facundo Batista
b6a5c9d605 Added timout parameter to telnetlib.Telnet. Also created
test_telnetlib.py with a basic test and timeout ones.
Docs are also updated.
2007-03-29 18:22:35 +00:00
Georg Brandl
30712ab82f In Windows' time.clock(), when QueryPerformanceFrequency() fails,
the C lib's clock() is used, but it must be divided by CLOCKS_PER_SEC
as for the POSIX implementation (thanks to #pypy).
2007-03-29 12:42:07 +00:00
Georg Brandl
9499b7117a These are actually methods. 2007-03-29 07:41:32 +00:00
Collin Winter
04a51ec8a3 Make test_zipfile clean up its temporary files properly. 2007-03-29 02:28:16 +00:00
Collin Winter
d28fcbc7fb Consolidate patches #1690164, 1683397, and 1690169, all of which refactor XML-related test suites. The patches are applied together because they use a common output/xmltests file.
Thanks to Jerry Seutter for all three patches.
2007-03-28 23:34:06 +00:00
Facundo Batista
366d6262f8 Added timeout to smtplib (to SMTP and SMTP_SSL). Also created
the test_smtplib.py file, with a basic test and the timeout
ones. Docs are updated too.
2007-03-28 18:25:54 +00:00
Facundo Batista
1fe9f968a2 Bug 1688393. Adds a control of negative values in
socket.recvfrom, which caused an ugly crash.
2007-03-28 03:45:20 +00:00
Facundo Batista
b20c500251 The basic test cases of poplib.py. 2007-03-27 18:50:29 +00:00
Facundo Batista
1b1c347311 Added an optional timeout to poplib.POP3. Also created a
test_poplib.py file with a basic test and the timeout
ones. Docs are also updated.
2007-03-27 18:23:21 +00:00
Facundo Batista
3f10099289 Forgot to add the file before the previous commit, here go
the ftplib tests.
2007-03-26 20:56:09 +00:00
Georg Brandl
f03facfe90 Some nits. 2007-03-26 20:28:28 +00:00
Facundo Batista
51b7abc519 Added an optional timeout to FTP class. Also I started a test_ftplib.py
file to test the ftp lib (right now I included a basic test, the timeout
one, and nothing else).
2007-03-26 20:18:31 +00:00
Georg Brandl
85fd7ac93d Markup fix. 2007-03-25 19:04:55 +00:00
Georg Brandl
6b5e1aa167 Markup fix. 2007-03-25 18:44:35 +00:00
Facundo Batista
f196629eba Closing the HTTP connection after each test, and listening more. 2007-03-25 03:20:05 +00:00
Facundo Batista
b8af7bcad5 Redone the tests, using the infrastructure already present
for threading and socket serving.
2007-03-25 01:53:21 +00:00
Brett Cannon
27ef61ca18 Change the docs to no longer claim that unittest is preferred over doctest for
regression tests.
2007-03-25 01:32:36 +00:00
Georg Brandl
3d52e5f07d Revert accidental change. 2007-03-24 22:27:56 +00:00
Georg Brandl
b881b9aacf Remove typo accent. 2007-03-24 22:20:34 +00:00
Žiga Seilnacht
c64ad484a9 Patch #1489771: update syntax rules in Python Reference Manual.
Python 2.5 added support for explicit relative import statements and
yield expressions, which were missing in the manual.
Also fix grammar productions that used the names from the Grammar file,
markup that broke the generated grammar.txt, and wrap some lines that
broke the pdf output.  Will backport.
2007-03-24 14:24:26 +00:00