Commit Graph

36960 Commits

Author SHA1 Message Date
Facundo Batista 78e19616f3 Prevent asyncore.dispatcher tests from hanging by adding loop counters
to server & client, and by adding asyncore.close_all calls in
tearDown. Also choose correct expected logging results based on the
value of __debug__  [Alan McIntyre - GSoC]
2007-07-17 02:19:39 +00:00
Facundo Batista 66263cf151 Changed the used port and commented out some tests that uses
a non documented function that appers to uses resources
not present in Windows.
2007-07-15 20:30:39 +00:00
Facundo Batista f47bc182f1 First version. Includes tests for helper functions: read, write,
_exception, readwrite, closeall, compact_traceback; and for classes
dispatcher, dispatcher_with_send, and file_wrapper.
[Alan McIntyre - GSoC]
2007-07-14 22:41:45 +00:00
Andrew M. Kuchling 2b09ef0c6d Avoid exception if there's a stray directory inside a Maildir folder.
The Maildir specification doesn't seem to say anything about this
situation, and it can happen if you're keeping a Maildir mailbox in
Subversion (.svn directories) or some similar system.  The patch just
ignores directories in the cur/, new/, tmp/ folders.
2007-07-14 21:56:19 +00:00
Andrew M. Kuchling 6111ce3667 Typo fix 2007-07-14 20:58:21 +00:00
Georg Brandl b89c9eeb35 Clarify webbrowser.open description. 2007-07-14 17:32:41 +00:00
Georg Brandl cf3a70441d Bug #1753406: missing \versionadded for subprocess.check_call. 2007-07-14 17:12:23 +00:00
Barry Warsaw 81a06d4260 In response to this SF bug:
[ 1752723 ] email.message_from_string: initial line gets discarded

I added a test to assert that when the first line of text passed to
message_from_string() contains a leading space, the message ends up with the
appropriate FirstHeaderLineIsContinuationDefect on its defects list.

The bug is invalid.
2007-07-13 22:12:58 +00:00
Thomas Heller fe31d77dc0 PyType_stgdict() returns a borrowed reference which must not be
Py_DECREF'd.
2007-07-13 19:51:55 +00:00
Thomas Heller ef4fff3435 Fix for SF# 1649098: avoid zero-sized array declaration in structure. 2007-07-13 17:46:54 +00:00
Thomas Heller fa704c6ade Fix for SF# 1701409: segfault in c_char_p of ctypes. The repr output
of c_char_p and c_wchar_p has changed as a sideeffect.
2007-07-13 17:12:23 +00:00
Thomas Heller ad0cfe3dd7 Do not try to load the GLUT library in the ctypes tests. This test
adds little value, but has a large problem on OS X, as explained in
SF# 1581906.
2007-07-13 16:50:43 +00:00
Thomas Heller 1fd1cc5be2 Add tests for _ctypes.COMError. 2007-07-13 14:18:06 +00:00
Thomas Heller 1421b00162 Repair COMError. Since exceptions are new style classes now, setting
the methods and docstring after the type creation does not work, they
must be in the dictionary before creating the type.
2007-07-13 13:59:39 +00:00
Raymond Hettinger 928713c740 Correct the docs for takewhile(). Improve the recipe for nth(). Should be backported 2007-07-13 12:09:41 +00:00
Facundo Batista 5a3b524e8e Added tests for basic behavior of DateTime, Binary, and Fault classes
and the escape function. Check that marshalling recursive sequences &
dicts raises TypeError. Check that marshalling out-of-range ints
raises OverflowError [Alan McIntyre - GSoC]
2007-07-13 10:43:44 +00:00
Georg Brandl 4b3ab6fcc0 Patch #1675424: Added tests for uncovered code in the zipfile module.
The KeyError raised by Zipfile.getinfo for nonexistent names now has
  a descriptive message.
2007-07-12 09:59:22 +00:00
Georg Brandl 9467bc5ad1 Bug #1637365: add subsection about "__name__ == __main__" to the
Python tutorial.
2007-07-12 09:37:49 +00:00
Georg Brandl b2e208f901 Patch #1731169: clean up expected skips list. 2007-07-12 09:24:04 +00:00
Georg Brandl c8011d649e Patch #1731659: improve time.strptime docs. 2007-07-12 09:06:41 +00:00
Georg Brandl 7c3b50db66 Patch #1673759: add a missing overflow check when formatting floats
with %G.
2007-07-12 08:38:00 +00:00
Georg Brandl bc5fbd9f8c Patch #1739696: use code.co_code only if really necessary 2007-07-12 08:11:29 +00:00
Georg Brandl f91149e4a1 Patch #1752270, #1750931: complain if urllib2 add_handler called
without handler.
2007-07-12 08:05:45 +00:00
Georg Brandl c6057c7812 Fix #1752132: wrong comment in opcode description. 2007-07-11 19:41:49 +00:00
Ronald Oussoren 9cca918db8 Patch 1673122: be explicit about which libtool to use, to avoid name clashes
when a users install GNU libtool early in his PATH
2007-07-09 08:41:15 +00:00
Ronald Oussoren 9b0bcc1f4b Patch 1693258: Fix for duplicate "preferences" menu-OS X 2007-07-09 06:02:21 +00:00
Neal Norwitz e3b185f966 Fix typo in comment 2007-07-06 04:13:39 +00:00
Kurt B. Kaiser d67a3b9503 Many calls to tk.call involve an arglist containing a single tuple.
Calls using METH_OLDARGS unpack this tuple; calls using METH_VARARG
don't.  Tcl's concatenation of args was affected; IDLE doesn't start.

Modify Tkapp_Call() to unpack single tuple arglists.

Bug 1733943
Ref http://mail.python.org/pipermail/python-checkins/2007-May/060454.html
2007-07-05 22:03:39 +00:00
Mark Hammond e81119295e copy built files to the PCBuild directory, where tools like
distutils or external build processes can find them.
2007-07-04 02:03:10 +00:00
Georg Brandl 152ff5f592 Remove duplicate sentence from alarm() doc. 2007-07-02 11:54:28 +00:00
Georg Brandl ee250301b7 Fix a few webbrowser.py problems. 2007-07-01 08:11:35 +00:00
Georg Brandl 6eed49f919 Document smtp.SMTPAuthenticationError. 2007-06-30 11:01:01 +00:00
Georg Brandl a37bd0f4a9 Fix a variable name in winreg docs. 2007-06-27 14:09:56 +00:00
Georg Brandl 00a15bbe2e Bug #1742901: document None behavior of shlex.split. 2007-06-25 15:21:23 +00:00
Georg Brandl 9731eefcfc Bug #1739115: make shutil.rmtree docs clear wrt. file deletion. 2007-06-19 12:38:20 +00:00
Georg Brandl 75ec1dbd9d Bug #1737864: allow empty message in logging format routines. 2007-06-19 12:36:00 +00:00
Lars Gustäbel 072aaf7150 Added missing \versionchanged tag for the new exclude
parameter.
2007-06-18 20:05:55 +00:00
Lars Gustäbel 104490e615 Added exclude keyword argument to the TarFile.add() method. 2007-06-18 11:42:11 +00:00
Neal Norwitz 9d0476f7da Revert last change for SF #1738754, there's no print in there. 2007-06-18 02:50:15 +00:00
Neal Norwitz cc1934a297 SF #1738754, remove extra backslash in string 2007-06-18 02:46:36 +00:00
Neal Norwitz f2eb4cba1a SF #1738670, make example in doc work 2007-06-17 18:48:32 +00:00
Georg Brandl d8f77debd1 Add missing \versionadded. 2007-06-16 17:10:12 +00:00
Martin v. Löwis cd1690e62d Mention Senthil Kumaran. 2007-06-16 10:08:43 +00:00
Andrew M. Kuchling 0b4589f60d Add a word 2007-06-15 22:43:03 +00:00
Neal Norwitz df4622690b urllib2_localnet says it leaks probably due to threads. So ignore it.
popen2 is also complaining probably for similar reasons.
make install always reports failure, so don't mail in this case.
2007-06-15 03:11:41 +00:00
Martin v. Löwis da073e1601 Patch #1734014: Use _I64_MAX instead of LLONG_MAX.
Will backport to 2.5.
2007-06-14 20:46:25 +00:00
Walter Dörwald 84a3efec37 Add T_PYSSIZET in structmember.h: This can be used for
Py_ssize_t members.

Simplify the implementation of UnicodeError objects:
start and end attributes are now stored directly as
Py_ssize_t members, which simplifies various get and
set functions.
2007-06-13 16:57:12 +00:00
Thomas Heller 22000cbd6b Build bzip2. 2007-06-13 07:54:57 +00:00
Thomas Heller 635d7a224a Notes about building tcl/tk for windows/AMD64. 2007-06-13 07:07:41 +00:00
Thomas Heller 92094d0f1c Do not hardcode the buildbot's directory name. 2007-06-13 07:07:03 +00:00