Commit Graph

18210 Commits

Author SHA1 Message Date
Victor Stinner 975134e2a2 Issue #13093: Fix error handling on PyUnicode_EncodeDecimal()
Add tests for PyUnicode_EncodeDecimal()
2011-11-22 01:54:19 +01:00
Antoine Pitrou 5aa7df320f Issue #13322: Fix BufferedWriter.write() to ensure that BlockingIOError is
raised when the wrapped raw file is non-blocking and the write would block.
Previous code assumed that the raw write() would raise BlockingIOError, but
RawIOBase.write() is defined to returned None when the call would block.
Patch by sbt.
2011-11-21 20:16:44 +01:00
Victor Stinner 9d38b0dcb2 Close #13401: Skip TestFileTypeW of test_argparse if the current user is root
Patch written by Arfrever Frehtes Taifersar Arahesis.
2011-11-20 23:09:09 +01:00
Ezio Melotti 169ed5946a #11112: Fix typo in a base class in test_socket. 2011-11-18 18:33:14 +02:00
Ezio Melotti 00dc60beee #13358: HTMLParser now calls handle_data only once for each CDATA. 2011-11-18 18:00:40 +02:00
Ezio Melotti 93bbb6a9a6 #4147: minidom's toprettyxml no longer adds whitespace around a text node when it is the only child of an element. Initial patch by Dan Kenigsberg. 2011-11-18 17:30:28 +02:00
Jason R. Coombs 5d032c0f95 PDB now will properly escape backslashes in the names of modules it executes. Fixes #7750 2011-11-17 18:03:24 -05:00
Ned Deily 174c4f897f Issue #8793: Prevent IDLE crash in 2.7 when given strings with
invalid hex escape sequences.
2011-11-15 18:29:02 -08:00
Antoine Pitrou 30402549de Issue #13333: The UTF-7 decoder now accepts lone surrogates
(the encoder already accepts them).
2011-11-15 01:49:40 +01:00
Victor Stinner 16ed86831b Issue #7732: Try to fix the a failing test on Windows
It doesn't matter if imp.find_module() fails with ImportError or IOError, but
it should not crash.
2011-11-14 20:50:36 +01:00
Ezio Melotti 0f1571ce7f #1745761, #755670, #13357, #12629, #1200313: improve attribute handling in HTMLParser. 2011-11-14 18:04:05 +02:00
Ezio Melotti 74592919d6 Group tests about attributes in a separate class. 2011-11-08 02:07:18 +02:00
Petri Lehtinen ab42abd160 Update mailbox.Maildir tests
Remove a sleep to fix transient test failures. Use skewfactor of -3 to
make it work on systems that have 1 second precision for time.time().

Closes #11999
Refs #13254
2011-11-12 21:02:42 +02:00
Antoine Pitrou 667383c8d4 Issue #13193: Fix distutils.filelist.FileList under Windows. The
"recursive-include" directive now recognizes both legal path separators.
2011-11-12 01:33:59 +01:00
Antoine Pitrou 6a570d6b9a Issue #13373: multiprocessing.Queue.get() could sometimes block indefinitely
when called with a timeout.  Patch by Arnaud Ysmal.
2011-11-10 00:33:50 +01:00
Jesus Cea cb65f3249a Partial patch for issue #11812: Take care of test_telnetlib.py 2011-11-08 16:06:44 +01:00
Jesus Cea 71094b5d5b Solved a potential deadlock in test_telnetlib.py. Related to issue #11812 2011-11-08 15:54:42 +01:00
Vinay Sajip 53703d9d72 Closes #13361: Raise correct exception type. 2011-11-07 10:13:18 +00:00
Vinay Sajip 74ab3440ba Closes #13661: Check added for type of logger name. 2011-11-07 08:49:16 +00:00
Vinay Sajip caf0272d40 Closes #13356. Thanks to Florent Xicluna for the patch. 2011-11-07 08:43:51 +00:00
Petri Lehtinen 3b9d92aefe Revert "Accept None as start and stop parameters for list.index() and tuple.index()"
Issue #13340.
2011-11-06 20:59:01 +02:00
Ezio Melotti 030aa35a1b Silence a couple of warnings. 2011-11-06 18:50:32 +02:00
Ezio Melotti b22c3fe5d8 Fix another callable warning. 2011-11-06 17:50:52 +02:00
Ezio Melotti 152d61aa5b Fix tests now that the callable warning is gone. 2011-11-06 17:17:52 +02:00
Petri Lehtinen 819d8d447d Accept None as start and stop parameters for list.index() and tuple.index()
Closes #13340.
2011-11-05 23:18:06 +02:00
Petri Lehtinen 416ecffcc4 Issue #3067: Enhance the documentation and docstring of locale.setlocale() 2011-11-05 10:18:50 +02:00
Petri Lehtinen 49aa72ed4c Fix Maildir initialization so that maildir contents are read correctly.
Closes #13254.
2011-11-05 09:50:37 +02:00
Éric Araujo ce7554f0a1 Revert commit that was not a bugfix (#5301).
I won’t revert in 3.2, since Georg pulled this change in 3.2.2 and
released it.
2011-11-04 18:15:45 +01:00
Florent Xicluna 5f761d79c0 Issue #13140: Fix the daemon_threads attribute of ThreadingMixIn. 2011-11-04 10:15:57 +01:00
Charles-François Natali 09f871462f Issue #13308: Fix test_httpservers failures when run as root. 2011-11-02 19:32:54 +01:00
Florent Xicluna b82cbc33f5 Fix merge in changeset e1dde980a92c. 2011-11-01 23:54:16 +01:00
Florent Xicluna 0965ee213e Issue #2892: preserve iterparse events in case of SyntaxError 2011-11-01 23:34:41 +01:00
Ezio Melotti 7e82b276dd #670664: Fix HTMLParser to correctly handle the content of ``<script>...</script>`` and ``<style>...</style>``. 2011-11-01 14:09:56 +02:00
Ned Deily 1aacd7bb02 Issue #13304: Skip test case if user site-packages disabled (-s or
PYTHONNOUSERSITE).  (Patch by Carl Meyer)
2011-10-31 16:14:52 -07:00
Antoine Pitrou cf9943de97 Backout redundant changeset 1de4d92cd6a4 2011-10-31 20:23:00 +01:00
Senthil Kumaran 87e585581d Port to 2.7 - issue 10817 - Fix urlretrieve function to raise
ContentTooShortError even when reporthook is None. Patch by Jyrki Pulliainen.
2011-11-01 02:44:45 +08:00
Barry Warsaw 39aec0171d test_protocol_sslv2(): Skip this test if ssl.PROTOCOL_SSLv2 is not
defined (as is the case with Ubuntu 11.10).
2011-10-31 14:08:15 -04:00
Jesus Cea e4ae5f7e0f Closes #13283: removal of two unused variable in locale.py 2011-10-31 16:02:12 +01:00
Ned Deily 86d669bdb8 Issue 13296: Fix IDLE to clear compile __future__ flags on shell restart.
(Patch by Roger Serwy)
2011-10-30 19:58:04 -07:00
Raymond Hettinger e11a47e207 Issue 13274: Make the pure python code for heapq more closely match the C implementation for an undefined corner case. 2011-10-30 14:29:06 -07:00
Antoine Pitrou 6361ea2b07 Remove unstable SSL tests in the absence of ssl.OP_NO_{SSLv2,SSLv3,TLSv1} 2011-10-30 21:31:34 +01:00
Ezio Melotti ef4e2fa171 #13289: fix typo. 2011-10-29 10:40:20 +03:00
Florent Xicluna 67d5d0ed44 Closes #7334: close source files on ElementTree.parse and iterparse (partial backport of issue #10093 from 3.2). 2011-10-29 03:38:56 +02:00
Benjamin Peterson e96102b45b bring is_integer into tested existence 2011-10-28 19:42:48 -04:00
Barry Warsaw be83698f21 - Issue #13218: Fix test_ssl failures on Debian/Ubuntu. 2011-10-28 16:14:44 -04:00
Benjamin Peterson 7789f270d8 adjust for change in assert bytecode 2011-10-27 08:53:32 -04:00
Benjamin Peterson 78fc70503e add a test for an assertion with tuple msg 2011-10-27 08:20:01 -04:00
Petri Lehtinen 6d089df1b8 Issue #10860: Skip the new test if HTTPS is not available 2011-10-26 21:25:56 +03:00
Vinay Sajip 5087d800c1 Corrected typo in comment. 2011-10-25 11:10:54 +01:00
Vinay Sajip 9a11b296b2 Closes #13232: Handle multiple encodings in exception logging. 2011-10-24 23:23:02 +01:00
Charles-François Natali 46f990e58c Issue #10332: multiprocessing: fix a race condition when a Pool is closed
before all tasks have completed.
2011-10-24 18:43:51 +02:00
Antoine Pitrou 5a77fe92bd Issue #1548891: The cStringIO.StringIO() constructor now encodes unicode
arguments with the system default encoding just like the write() method
does, instead of converting it to a raw buffer.
2011-10-22 21:26:01 +02:00
Antoine Pitrou f678e82240 Oops, forgot issue number 2011-10-21 22:22:43 +02:00
Antoine Pitrou a5016cd0f7 Add test for fix of issue #1730114. 2011-10-21 22:22:04 +02:00
Florent Xicluna 47fb192dda Issue #9168: now smtpd is able to bind privileged port. 2011-10-20 23:21:58 +02:00
Senthil Kumaran ddd40312d5 Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
exceptions, when a document with timestamp earlier than 1980 is provided to
zipfile. Patch contributed by  Petri Lehtinen.
2011-10-20 01:38:35 +08:00
Senthil Kumaran 59a06d412d Fix closes Issue12529 - cgi.parse_header failure on double quotes and
semicolons. Patch by Ben Darnell and Petri Lehtinen.
2011-10-20 00:52:24 +08:00
Ezio Melotti 1e87da16ea Remove duplication. 2011-10-19 10:39:35 +03:00
Łukasz Langa 7a15390f83 Fixes #10860: Handle empty port after port delimiter in httplib
Thanks, Shawn Ligocki!

3.x version will come as a separate patch.
2011-10-18 17:16:00 +02:00
Mark Hammond 3dca9f52a4 normalize whitespace in Lib/distutils/msvc9compiler.py 2011-10-17 11:35:06 +11:00
Mark Hammond 323b5daa10 Issue #7833: Ext. modules built using distutils on Windows no longer get a manifest 2011-10-17 11:05:36 +11:00
Benjamin Peterson a7b0976c3e PyEval_CallObject requires a tuple of args (closes #13186) 2011-10-15 13:43:21 -04:00
Éric Araujo 5baef6d23b Increase test coverage for distutils.filelist (#11751).
Patch by Justin Love.
2011-10-14 18:15:31 +02:00
Éric Araujo 017e535bde Fix distutils’ check and register Unicode handling (#13114).
The check command was fixed by Kirill Kuzminykh.

The register command was using StringIO.getvalue, which uses “''.join”
and thus coerces to str using the default encoding (ASCII), so I changed
the code to use one extra intermediary list and correctly encode to
UTF-8.
2011-10-09 07:11:19 +02:00
Éric Araujo ece7079b54 Branch merge 2011-10-09 06:33:54 +02:00
Éric Araujo 1a1a8a0e31 Fix test_sysconfig when prefix != exec-prefix (#9100).
Reported by Zsolt Cserna.
2011-10-08 02:49:12 +02:00
Éric Araujo 5fb16cd1d2 Make C code in one distutils test comply with ISO C (#10359).
Patch by Hallvard B Furuseth.
2011-10-08 02:15:55 +02:00
Ned Deily c4a2745174 Issue #7367: Ensure test directory always gets removed. 2011-10-07 12:01:18 -07:00
Ned Deily 777f2e04ea Issue #7367: Fix pkgutil.walk_paths to skip directories whose
contents cannot be read.
2011-10-06 14:17:47 -07:00
Ned Deily 0096fb5780 Issue #7425: Prevent pydoc -k failures due to module import errors.
(Backport to 2.7 of existing 3.x fix)
2011-10-06 14:17:44 -07:00
Ned Deily ac6874c4bb Issue #7367: Add test case to test_pkgutil for walking path with
an unreadable directory.
2011-10-06 14:17:41 -07:00
Ned Deily 1a96f8de79 Issue #7425: Refactor test_pydoc test case for '-k' behavior and add
new test cases for importing bad packages and unreadable packages dirs.
2011-10-06 14:17:34 -07:00
Charles-François Natali 9ffcbf71a5 Issue #13070: Fix a crash when a TextIOWrapper caught in a reference cycle
would be finalized after the reference to its underlying BufferedRWPair's
writer got cleared by the GC.
2011-10-06 19:09:45 +02:00
Éric Araujo e954ecb9ba Branch merge 2011-10-06 13:19:34 +02:00
Amaury Forgeot d'Arc c9539d593e Enable the only tests for sys.gettrace 2011-10-05 22:34:51 +02:00
Senthil Kumaran 41d663f0a5 Issue13073 - Address review comments and add versionchanged information in the docs. 2011-10-05 23:52:49 +08:00
Éric Araujo 2710bc4b68 Fix typo and case in a recently added test 2011-10-05 02:35:09 +02:00
Antoine Pitrou 09debc9a5b Avoid testing stuff that's been fixed in 2.7 on older Pythons 2011-10-04 12:00:13 +02:00
Antoine Pitrou 561a821e93 Issue #7689: Allow pickling of dynamically created classes when their
metaclass is registered with copyreg.  Patch by Nicolas M. Thiéry and
Craig Citro.
2011-10-04 09:34:48 +02:00
Meador Inge ad349a190e Issue #12881: ctypes: Fix segfault with large structure field names. 2011-10-03 21:34:04 -05:00
R David Murray c8faf9bb0c #4147: minidom's toprettyxml no longer adds whitespace to text nodes.
Patch by Dan Kenigsberg.
2011-10-01 16:49:25 -04:00
Antoine Pitrou f06eb46918 Issue #13034: When decoding some SSL certificates, the subjectAltName extension could be unreported. 2011-10-01 19:30:58 +02:00
Victor Stinner 63c22fac72 Issue #7732: Fix a crash on importing a module if a directory has the same name
than a Python module (e.g. "__init__.py"): don't close the file twice.

PyFile_FromFile() does also close the file if PyString_FromString() failed. It
did already close the file on fill_file_fields() error (e.g. if the file is a
directory).
2011-09-23 19:37:03 +02:00
Victor Stinner 51b719814e Issue #12931: xmlrpclib now encodes Unicode URI to ISO-8859-1, instead of
failing with a UnicodeDecodeError.
2011-09-23 01:15:32 +02:00
Charles-François Natali 2156594d8c Fix a race condition in test_socket.ThreadableTest: the client is reported
ready before having been set up.
2011-09-21 22:02:27 +02:00
Charles-François Natali f8413b29c0 Issue #12981: test_multiprocessing: catch ImportError when importing
multiprocessing.reduction, which may not be available (e.g. if the OS doesn't
support FD passing over Unix domain sockets).
2011-09-21 18:44:49 +02:00
Jesus Cea c23484b21f Close #13022: _multiprocessing.recvfd() doesn't check that file descriptor was actually received 2011-09-21 03:47:39 +02:00
Jesus Cea d256ca12c1 Close #13007: whichdb should recognize gdbm 1.9 magic numbers 2011-09-19 16:57:18 +02:00
Ned Deily 1549bac6ba Issue #12935: Correct typo in findertools. 2011-09-15 14:07:31 -07:00
Senthil Kumaran 0d4c34c6ec Port the fix for Issue12924 (missing quote_plus) to 2.7 branch. 2011-09-13 06:42:21 +08:00
Amaury Forgeot d'Arc aa3af53f1f Remove trailing spaces 2011-09-12 21:19:53 +02:00
Amaury Forgeot d'Arc 439c25eb9e Issue #12483: ctypes: Fix a crash when the destruction of a callback
object triggers the garbage collector.
2011-09-12 20:12:09 +02:00
Éric Araujo dcdc3ef5fa Branch merge 2011-09-12 17:47:48 +02:00
Éric Araujo a13cd39533 Fix determination of Metadata version (#8933). Patch by Filip Gruszczyński. 2011-09-10 05:39:45 +02:00
Éric Araujo 0c4007641e Slight cleanup in distutils test_dist.
I have tests to add in this file and it’s always nice to start from a
clean base.  I’ve also changed a test that used to write an invalid
config file ('[global]command_packages = etc.' on one line), but the
test passes before and after this change, so either it magically works
or the test is poorly written.  Sigh.
2011-09-10 05:37:33 +02:00
Jesus Cea 6faf907e6d Fix issue #12948: multiprocessing test failures can hang the buildbots 2011-09-09 22:15:16 +02:00
Jesus Cea 6f6016bc59 Close issue #12948: multiprocessing test failures can hang the buildbots 2011-09-09 20:26:57 +02:00
Jesus Cea c6072d8675 Issue #12333: fix test_distutils failures under Solaris and derivatives. Patch by Antoine Pitrou 2011-09-09 18:50:59 +02:00
Victor Stinner e3a768b554 Issue #12326: Remove plat-linux3 directory
sys.platform is now always 'linux2' on Linux (even on Linux 3)
2011-09-05 21:38:05 +02:00
Éric Araujo ab08da0a1c Branch merge 2011-09-05 17:45:48 +02:00