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
Collin Winter
75c7eb4fd8
Make test_relpath() pass on Windows.
2007-03-23 22:24:39 +00:00
Facundo Batista
14553b08a1
Surrounded with try/finally to socket's default timeout setting
...
changes in the tests, so failing one test won't produce strange
results in others. Also relaxed the timeout settings in the test
(where actually the value didn't mean anything).
2007-03-23 20:23:08 +00:00
Thomas Heller
e6a7039451
Prevent creation (followed by a segfault) of array types when the size
...
overflows the valid Py_ssize_t range. Check return values of
PyMem_Malloc.
Will backport to release25-maint.
2007-03-23 19:55:27 +00:00
Guido van Rossum
234b1ff24f
Add note about type.__init__().
2007-03-23 19:39:01 +00:00
Facundo Batista
07c78be0b4
Added a 'create_connect()' function to socket.py, which creates a
...
connection with an optional timeout, and modified httplib.py to
use this function in HTTPConnection. Applies patch 1676823.
2007-03-23 18:54:07 +00:00
Guido van Rossum
f102e24bd3
Add a type.__init__() method that enforces the same signature as
...
type.__new__(), and then calls object.__init__(cls), just to be anal.
This allows us to restore the code in string.py's _TemplateMetaclass
that called super(...).__init__(name, bases, dct), which I commented
out yesterday since it broke due to the stricter argument checking
added to object.__init__().
2007-03-23 18:53:03 +00:00
Martin v. Löwis
0af338859b
Bug #978833 : Revert r50844, as it broke _socketobject.dup.
...
Will backport.
2007-03-23 13:27:15 +00:00
Martin v. Löwis
2f401d7186
Patch #1686451 : Fix return type for PySequence_{Count,Index,Fast_GET_SIZE}.
...
Will backport.
2007-03-23 10:35:49 +00:00
Neal Norwitz
eff49dce56
Add Mark Dickinson for SF # 1675423.
2007-03-23 05:17:23 +00:00
Guido van Rossum
143b564059
- Bug #1683368 : The object.__init__() and object.__new__() methods are
...
now stricter in rejecting excess arguments. The only time when
either allows excess arguments is when it is not overridden and the
other one is. For backwards compatibility, when both are
overridden, it is a deprecation warning (for now; maybe a Py3k
warning later).
When merging this into 3.0, the warnings should become errors.
Note: without the change to string.py, lots of spurious warnings happen.
What's going on there?
2007-03-23 04:58:42 +00:00
Thomas Heller
82730f8d11
Explain the purpose of the b_needsfree flag (forward ported from release25-maint).
2007-03-22 20:34:37 +00:00
Thomas Heller
f493cbd824
Back out "Patch #1643874 : memory leak in ctypes fixed."
...
The code in this patch leaves no way to give up the ownership of a
BSTR instance.
2007-03-22 19:44:31 +00:00
Georg Brandl
bfcc975527
Bug #1685704 : use -m switch in timeit docs.
2007-03-22 08:05:45 +00:00
Raymond Hettinger
e3146f5aa3
Add test and fix for fromkeys() optional argument.
2007-03-21 20:33:57 +00:00
Žiga Seilnacht
7492e4260e
Bug #1675967 : re patterns pickled with older Python versions can
...
now be unpickled. Will backport.
2007-03-21 20:07:56 +00:00
Facundo Batista
3ff9e55890
Minor clarification, saying that blocking means no timeout (from bug #882297 )
2007-03-21 19:41:24 +00:00
Andrew M. Kuchling
4732c6e164
Put code examples at left margin instead of indenting them
2007-03-21 16:59:20 +00:00
Andrew M. Kuchling
7af1bdf619
Fix sentence, and fix typo in example
2007-03-21 16:57:32 +00:00
Andrew M. Kuchling
8aa30927ab
Add comments on maintenance of this file
2007-03-21 14:32:43 +00:00
Georg Brandl
972ca507aa
Fix #1684254 : split BROWSER contents with shlex to avoid displaying 'URL'.
2007-03-21 11:51:25 +00:00
Georg Brandl
5e0b865b0f
Patch #1684834 : document some utility C API functions.
2007-03-21 09:16:53 +00:00
Georg Brandl
cae9f3d916
New test for rev. 54407 which only uses directories under TESTFN.
2007-03-21 09:10:29 +00:00
Georg Brandl
5cb76c19ba
Patch #1682205 : a TypeError while unpacking an iterable is no longer
...
masked by a generic one with the message "unpack non-sequence".
2007-03-21 09:00:39 +00:00
Neal Norwitz
aa754b70b0
Remove unused file spotted by Paul Hankin
2007-03-21 06:39:48 +00:00
Georg Brandl
b54a809825
Fix for glob.py if filesystem encoding is None.
2007-03-20 23:05:14 +00:00
Raymond Hettinger
0bbbfc4c0b
Extend work on rev 52962 and 53829 eliminating redundant PyObject_Hash() calls and fixing set/dict interoperability.
2007-03-20 21:27:24 +00:00
Neal Norwitz
ce55e21c70
Try to get test_urllib to pass on Windows by closing the file.
...
I'm guessing that's the problem. h.getfile() must be called *after*
h.getreply() and the fp can be None.
I'm not entirely convinced this is the best fix (or even correct).
The buildbots will tell us if things improve or not. I don't
know if this needs to be backported (assuming it actually works).
2007-03-20 08:14:57 +00:00
Neal Norwitz
6cbd8de641
Try to be a little more resilient to errors. This might help the test
...
pass, but my guess is that it won't. I'm guessing that some other
test is leaving this file open which means it can't be removed
under Windows AFAIK.
2007-03-20 06:53:17 +00:00
Neal Norwitz
b0a7d4ec68
Try to make this test more resistant to dropping from previous runs (ie, files that may exist but cause the test to fail). Should be backported (assuming it works :-)
2007-03-20 06:16:26 +00:00
Neal Norwitz
ce2ab351f0
Try to make this test more resistant to dropping from previous runs (ie, files that may exist but cause the test to fail). Should be backported (assuming it works :-)
2007-03-20 06:13:25 +00:00
Neal Norwitz
c990f6454f
Try backing out 54407 to see if it corrects the problems on the Windows
...
buildbots. This rev was backported, so we will need to keep both branches
in sync, pending the outcome of the test after this checkin.
2007-03-20 05:23:09 +00:00
Neal Norwitz
c473d5ebab
Get rid of deprecation warning when testing commands.getstatus()
2007-03-20 05:21:21 +00:00
Neal Norwitz
216f9b0709
Add a comment about 3k migration
2007-03-20 05:08:23 +00:00
Neal Norwitz
b9523df1e6
Add some doc that was left out from some change to platform.py
2007-03-20 05:07:28 +00:00
Georg Brandl
124df8398d
Patch #1683328 : fixes and enhancements for "unparse" demo.
2007-03-19 19:02:48 +00:00