Commit Graph

18265 Commits

Author SHA1 Message Date
Antoine Pitrou e09bc1e8f5 Revert part of 13f56cd8dec1 (issue #1785) to avoid breaking getmembers() with unbound methods.
Python 3 isn't affected (unbound methods don't exist).
Thanks to Vincent Pelletier for noticing.
2012-01-18 17:39:01 +01:00
Jesus Cea a8f75da8f2 Yet another emergency fix for #13803 bootstrap issue: Under Solaris, distutils doesn't include bitness in the directory name 2012-01-18 04:43:50 +01:00
Jesus Cea f830aa5455 Emergency fix for #13803 bootstrap issue: Under Solaris, distutils doesn't include bitness in the directory name 2012-01-18 04:25:28 +01:00
Jesus Cea 4a8ba19783 Closes #13803: Under Solaris, distutils doesn't include bitness in the directory name 2012-01-18 03:51:38 +01:00
Antoine Pitrou 3b6a31412f Issue #13589: Fix some serialization primitives in the aifc module.
Patch by Oleg Plakhotnyuk.
2012-01-17 17:13:04 +01:00
Benjamin Peterson 465b58e5ee explain why we need this grammar file (closes #13766) 2012-01-15 21:28:00 -05:00
Terry Jan Reedy 8ef4a70a48 #13039 allow proper deletion of '>>> ' in IDLE editor windows.
Patch by Roger Serwy.
2012-01-15 19:02:50 -05:00
Amaury Forgeot d'Arc dee76e627d Issue #13774: json: Fix a SystemError when a bogus encoding is passed to
json.loads().
2012-01-13 22:53:25 +01:00
Antoine Pitrou 9e0839006e Remove unused certificate from the test directory. 2012-01-10 23:45:54 +01:00
Senthil Kumaran bcd833f30f - Issue #13642: Unquote before b64encoding user:password during Basic
Authentication. Patch contributed by Joonas Kuorilehto and Michele Orrù.
2012-01-11 00:09:24 +08:00
Terry Jan Reedy cfe6deb6f7 #11906 Make test_argparse work interactively by removing extra space
in comparison string that argparse does not add when program name is blank.
2012-01-09 18:20:09 -05:00
Benjamin Peterson 5fc58c6321 fix this to not depend on dictionary order 2012-01-03 16:23:11 -06:00
Antoine Pitrou d76088d972 Issue #13636: Weak ciphers are now disabled by default in the ssl module
(except when SSLv2 is explicitly asked for).
2012-01-03 22:46:48 +01:00
Charles-François Natali 3aa59e327c Issue #9975: socket: Fix incorrect use of flowinfo and scope_id. Patch by
Vilmos Nebehaj.
2012-01-02 15:38:27 +01:00
Jason R. Coombs 79e50c659a Limit test scope to those platforms that can save the target filenames. Reference #11638. 2011-12-28 11:42:22 -05:00
Benjamin Peterson c32d5cb9ec propgate error in other conditions 2011-12-27 15:16:34 -06:00
Jason R. Coombs 042370e750 Issue #11638: Adding test to ensure .tar.gz files can be generated by sdist command with unicode metadata, based on David Barnett's patch.
Issue #11638: Added tests to capture failures in make_tarball with various unicode strings.
Following fix for Issue #13639, these tests now pass.
2011-12-26 10:15:15 -05:00
Charles-François Natali b40827d379 Issue #13565: Increase multiprocessing's server socket backlog, to avoid
dropped connections in case of simultaneous connection requests.
2011-12-23 19:05:45 +01:00
Senthil Kumaran 139c457106 port to 2.7 - Minor code style improvements in http.server suggested in Issue13294. 2011-12-23 17:07:13 +08:00
Lars Gustäbel 7d4d074c99 Issue #13639: Accept unicode filenames in tarfile.open(mode="w|gz").
Passing a unicode filename to tarfile.open() along with mode "w|gz" failed
with a UnicodeError because the filename was not encoded properly before being
written to the gzipped stream in the FNAME extra field.
2011-12-21 19:27:50 +01:00
Antoine Pitrou 5b95eb90a7 Use context managers in test_ssl to simplify test writing. 2011-12-21 16:52:40 +01:00
Antoine Pitrou 17c07134a9 Fix test_import failure when run multiple times.
(2.7-only)
2011-12-21 16:01:53 +01:00
Antoine Pitrou b8572a1673 Issue #1785: Fix inspect and pydoc with misbehaving descriptors.
Also fixes issue #13581: `help(type)` wouldn't display anything.
2011-12-21 10:16:14 +01:00
Charles-François Natali 8366b8417b Followup to issue #11867: Use socketpair(), since FreeBSD < 8 doesn't really
support multiprocessing.Event.
2011-12-20 11:47:23 +01:00
Charles-François Natali 3b8180739d Issue #13453: Try to increase some socket timeouts to make some buildbots stop
failing.
2011-12-19 16:11:04 +01:00
Victor Stinner 99cff3f182 Issue #13628: python-gdb.py is now able to retrieve more frames in the Python
traceback if Python is optimized.

 * delay the lookup of the size_t type, it is not available at startup
 * The second argument of the PyFrameObjectPtr constructor is optional, as
   done in other constructors
 * iter_builtins() and iter_globals() methods of PyFrameObjectPtr returns
   an empty tuple instead of None if Python is optimized
 * Fix py-bt to handle correctly "optimized" frames
 * Frame.get_pyop() tries to get the frame pointer from PyEval_EvalCodeEx()
   if the pointer is optimized out in PyEval_EvalFrameEx()
2011-12-19 13:59:58 +01:00
Charles-François Natali 52aa260387 Issue #11867: Make test_mailbox.test_lock_conflict deterministic (and fix a
race condition).
2011-12-19 12:17:16 +01:00
Ezio Melotti 6b7003a18c #13576: add tests about the handling of (possibly broken) condcoms. 2011-12-19 07:28:08 +02:00
Antoine Pitrou 6c3f4a8a24 Followup to #7502: add __hash__ method and tests. 2011-12-18 20:20:17 +01:00
Antoine Pitrou 7a3d8aee8c Issue #7502: Fix equality comparison for DocTestCase instances.
Patch by Cédric Krier.
2011-12-18 19:27:45 +01:00
Charles-François Natali 41616300b1 Issue #11870: threading: Properly reinitialize threads internal locks and
condition variables to avoid deadlocks in child processes.
2011-12-18 18:22:24 +01:00
Charles-François Natali f3d35f0efe Issue #8035: urllib: Fix a bug where the client could remain stuck after a
redirection or an error.
2011-12-18 15:52:48 +01:00
Victor Stinner 429a12b7b6 Issue #13545: Fix platform.libc_version() is the SO version is missing 2011-12-15 21:42:03 +01:00
Ned Deily 40ad04171d Issue #4625: If IDLE cannot write to its recent file or breakpoint
files, display a message popup and continue rather than crash.
(original patch by Roger Serwy)
2011-12-14 14:57:43 -08:00
Charles-François Natali 27b154ea57 Issue #13453: Fix a race condition in test_poplib. 2011-12-14 19:28:08 +01:00
Raymond Hettinger f537702732 Issue #13573: The csv.writer now uses the repr() for floats rather than str(). 2011-12-11 22:31:09 -08:00
Benjamin Peterson 8b59c23a54 you can't get resource.error if you can't import resource 2011-12-10 12:31:42 -05:00
Charles-François Natali 97c9428c91 Issue #13453: Catch EAI_FAIL in support.transient_internet. 2011-12-10 13:16:02 +01:00
Jason R. Coombs 77cd258550 Implemented suggested improvements for pdb test by Éric Araujo 2011-12-08 22:14:56 -05:00
Victor Stinner 0de2aaea7f Issue #11886: workaround an OS bug (time zone data) in test_time
Australian Eastern Standard Time (UTC+10) is called "EST" (as Eastern Standard
Time, UTC-5) instead of "AEST" on some operating systems (e.g. FreeBSD), which
is wrong. See for example this bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=93810
2011-12-08 00:32:51 +01:00
Ezio Melotti 4988ca5c55 #13531: add a test for defaultdict with a non-callable arg. Patch by Mike Cheng. 2011-12-08 00:00:49 +02:00
Amaury Forgeot d'Arc 4bf21e28df Issue #13546: Fixed an overflow issue that could crash the intepreter when
calling sys.setrecursionlimit((1<<31)-1).

2.7 only.
2011-12-07 21:46:48 +01:00
Jesus Cea a94b578431 Close #13500: Hitting EOF gets cmd.py into a infinite EOF on return loop 2011-12-06 20:46:04 +01:00
Lars Gustäbel 9a38863d8c Correctly detect bzip2 compressed streams with blocksizes other than 900k. 2011-12-06 13:07:09 +01:00
Jason R. Coombs 974d863fec Issue #13211: Add .reason attribute to HTTPError to implement parent class (URLError) interface. 2011-11-07 10:44:25 -05:00
Petri Lehtinen 49e49a218c Issue #13439: Fix many errors in turtle docstrings. 2011-12-02 21:22:53 +02:00
Ezio Melotti ab731a3556 #8414: add more tests for "assert". Initial patch by Gregory Nofi. 2011-12-02 18:17:30 +02:00
Charles-François Natali 27bc4d07cc Issue #13415: Skip test_os.test_unset_error on FreeBSD and OS X. 2011-11-27 13:05:14 +01:00
Meador Inge 710671a722 Issue #12618: fix py_compile unit tests to handle different drives on Windows 2011-11-26 11:30:21 -06:00
Meador Inge 89749407af Issue #12618: create unit tests for the py_compile module 2011-11-25 23:28:18 -06:00
Meador Inge 0e30317891 Issue #13380: add an internal function for resetting the ctypes caches 2011-11-25 22:25:06 -06:00
Antoine Pitrou a5d5bb997b Issue #12856: Ensure child processes do not inherit the parent's random seed for filename generation in the tempfile module.
Patch by Brian Harring.
2011-11-25 21:28:15 +01:00
Victor Stinner 091b6ef793 Issue #13436: Fix unsetenv() test on Windows 2011-11-22 22:30:19 +01:00
Victor Stinner 53853c3fa9 Issue #13415: os.unsetenv() doesn't ignore errors anymore. 2011-11-22 22:20:13 +01:00
Charles-François Natali 6392d7f68b Issue #12156: Skip test_multiprocessing on systems which don't support enough
POSIX semaphores (among which FreeBSD < 8).
2011-11-22 18:35:18 +01:00
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