Commit Graph

37174 Commits

Author SHA1 Message Date
Neal Norwitz 7def3e05ce Support the new doc system. 2007-08-16 05:07:03 +00:00
Georg Brandl bf863b17f0 Replace "Caveat" paragraphs by .. warning::s. 2007-08-15 19:06:04 +00:00
Georg Brandl 7f758c49fa Mark deprecated modules as such. 2007-08-15 18:41:25 +00:00
Georg Brandl 09a5c3e6bb Fix a wrong path in the Makefile. 2007-08-15 18:30:42 +00:00
Georg Brandl 7094a0c9a8 Don't use "?=" which seems to be a GNUism. 2007-08-15 18:02:37 +00:00
Georg Brandl 64dec73154 Add the roman.py module which docutils require. 2007-08-15 17:27:29 +00:00
Georg Brandl 87d2ccf768 Fail somewhat more gracefully when using Python < 2.5. 2007-08-15 17:25:27 +00:00
Facundo Batista 849693989a When passed a bad formed literal to Decimal, now we have a
better error message, more descriptive. (bug #1770009)
2007-08-15 15:13:09 +00:00
Georg Brandl 8ec7f65613 Move the 2.6 reST doc tree in place. 2007-08-15 14:28:01 +00:00
Georg Brandl f56181ff53 Delete the LaTeX doc tree. 2007-08-15 14:26:55 +00:00
Georg Brandl af62d9abfb Tag last revision with LaTeX docs. 2007-08-15 14:08:45 +00:00
Brett Cannon 5a0382eeb6 Fix a missed instance of test.test_support.guard_warnings_filter (which was
recently removed).
2007-08-14 17:53:30 +00:00
Facundo Batista a53872b09a Added tests for simple function calls and introspection that are run
against a SimpleXMLRPCServer in a separate thread.  Because of
problems with WSAEWOULDBLOCK (error 10035) being raised by the server
on Windows, these new tests are skipped on win32. [GSoC - Alan McIntyre]
2007-08-14 13:35:00 +00:00
Brett Cannon 2ee4128e9b Remove test.test_support.guard_warnings_filter.
test.test_support.catch_warning is more full-featured and provides the same
functionality.

Since guard_warnings_filter was added in 2.6 there is no
backwards-compatibility issues.
2007-08-14 05:51:06 +00:00
Martin v. Löwis be7abbb9d9 Add a UUID for python26.dll. 2007-08-14 05:01:50 +00:00
Brett Cannon 5153266d13 Clarify the docs for TransientResource. 2007-08-14 03:42:13 +00:00
Brett Cannon 7b97e8a9c2 Fix a minor typo in a docstring. 2007-08-14 03:38:47 +00:00
Neal Norwitz 91a57216c9 Fix memory leak in os.readlink 2007-08-12 17:11:13 +00:00
Neal Norwitz 35c20969c8 Added Jeffrey Yasskin, reformat some lines to be consistent (and shorter). 2007-08-10 05:47:30 +00:00
Guido van Rossum b5e81aa53e Backport r56875 from py3k; double LEAVE_PYTHON when AsString() fails
in PythonCmd().
2007-08-09 21:47:11 +00:00
Georg Brandl 95d94947f0 Fix compilation warning. 2007-08-08 13:50:02 +00:00
Georg Brandl 9616444427 Revert the fix for #1548891, it broke backwards compatibility with arbitrary read buffers.
Fixes #1730114.
2007-08-08 13:03:41 +00:00
Georg Brandl 52c0c368b9 Bug #1769002: fix a now-wrong sentence in the tutorial. 2007-08-07 07:13:24 +00:00
Georg Brandl e7fe6c3db2 Patch #1765839: add link to https+proxy urllib2 opener. 2007-08-06 07:52:20 +00:00
Georg Brandl 0f6d360ac7 Replace unnecessary function call. 2007-08-06 07:39:09 +00:00
Georg Brandl 69ff5acc8b Place #ifdef Py_USING_UNICODE around decode_unicode(). 2007-08-06 07:37:58 +00:00
Neal Norwitz 2ef7582b52 Handle errors when generating a warning.
The value is always written to the returned pointer if getting it was
successful, even if a warning causes an error. (This probably doesn't matter
as the caller will probably discard the value.)

Will backport.
2007-08-05 03:23:31 +00:00
Hye-Shik Chang f3e93a0268 Fix gb18030 codec's bug that doesn't map two-byte characters on
GB18030 extension in encoding. (bug reported by Bjorn Stabell)
2007-08-04 04:10:18 +00:00
Neal Norwitz 766d880a2f Py_ssize_t is defined regardless of HAVE_LONG_LONG. Will backport 2007-08-03 06:46:29 +00:00
Matthias Klose eb8ff67fd7 - Allow Emacs 22 for building the documentation in info format. 2007-08-02 21:33:13 +00:00
Facundo Batista 412b8b654c Allow the OS to select a free port for each test server. For
DebuggingServerTests, construct SMTP objects with a localhost argument
to avoid abysmally long FQDN lookups (not relevant to items under
test) on some machines that would cause the test to fail. Moved server
setup code in the server function inside the try block to avoid the
possibility of setup failure hanging the test.  Minor edits to conform
to PEP 8. [GSoC - Alan McIntyre]
2007-08-01 23:18:36 +00:00
Martin v. Löwis 76760b0e8f Define _BSD_SOURCE, to get access to POSIX extensions on OpenBSD 4.1+. 2007-07-31 19:57:56 +00:00
Nick Coghlan f8bbaa962f Eliminate RLock race condition reported in SF bug #1764059 2007-07-31 13:38:01 +00:00
Facundo Batista 4950442fb7 When running asynchat tests on OS X (darwin), the test client now
overrides asyncore.dispatcher.handle_expt to do nothing, since
select.poll gives a POLLHUP error at the completion of these tests.
Added timeout & count arguments to several asyncore.loop calls to
avoid the possibility of a test hanging up a build. [GSoC - Alan
McIntyre]
2007-07-31 03:03:34 +00:00
Mark Hammond a6a21fabbc Correct use of Py_BUILD_CORE - now make sure it is defined before it is
referenced, and also fix definition of _WIN32_WINNT.
Resolves patch 1761803.
2007-07-30 00:45:29 +00:00
Georg Brandl 9efd9b6fa4 Bug #1763149: use proper slice syntax in docstring.
(backport)
2007-07-29 17:38:35 +00:00
Facundo Batista ec62423be4 Added tests for asynchat classes simple_producer & fifo, and the
find_prefix_at_end function. Check behavior of a string given as a
producer.  Added tests for behavior of asynchat.async_chat when given
int, long, and None terminator arguments. Added usepoll attribute to
TestAsynchat to allow running the asynchat tests with poll support
chosen whether it's available or not (improves coverage of asyncore
code). [GSoC - Alan McIntyre]
2007-07-29 14:23:08 +00:00
Georg Brandl 1ae6856522 try-except-finally is new in 2.5. 2007-07-29 09:11:15 +00:00
Georg Brandl 304f9ff770 Clarify PEP 343 description. 2007-07-29 08:26:10 +00:00
Facundo Batista 8eab424fb5 Moved all of the capture_server socket setup code into the try block
so that the event gets set if a failure occurs during server setup
(otherwise the test will block forever).  Changed to let the OS assign
the server port number, and client side of test waits for port number
assignment before proceeding. The test data in DispatcherWithSendTests
is also sent in multiple send() calls instead of one to make sure this
works properly. [GSoC - Alan McIntyre]
2007-07-28 14:21:22 +00:00
Martin v. Löwis f1e0b3f630 Bug #1704793: Return UTF-16 pair if unicodedata.lookup cannot
represent the result in a single character.
2007-07-28 07:03:05 +00:00
Martin v. Löwis f25e35b9ec Bug #978833: Close https sockets by releasing the _ssl object. 2007-07-27 18:28:22 +00:00
Nick Coghlan ec2ce9bbae Make test_math error messages more meaningful for small discrepancies in results 2007-07-27 10:36:30 +00:00
Mark Hammond df7f38face Correctly detect AMD64 architecture on VC2003 2007-07-27 05:08:54 +00:00
Mark Hammond d0aabc03c6 In consultation with Kristjan Jonsson, only define WINVER and _WINNT_WIN32
if (a) we are building Python itself and (b) no one previously defined them
2007-07-27 04:52:32 +00:00
Nick Coghlan 00f2029cd5 Add explicit test for a misbehaving math.floor 2007-07-26 14:03:00 +00:00
Georg Brandl c473149a5a tabs, newlines and crs are valid XML characters. 2007-07-26 09:36:25 +00:00
Martin v. Löwis 254b8f9096 Change location of the package index to pypi.python.org/pypi 2007-07-25 16:24:23 +00:00
Nick Coghlan 55248d6c61 Add a temporary diagnostic message before a strange failure on the alpha Debian buildbot 2007-07-25 13:18:58 +00:00
Nick Coghlan d44a5afaa9 More buildbot cleanup - let the OS assign the port for test_urllib2_localnet 2007-07-25 12:57:48 +00:00