Commit Graph

18328 Commits

Author SHA1 Message Date
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
Lars Gustäbel 8babfdfd45 Issue #12841: Fix tarfile extraction of non-existent uids/gids.
tarfile unnecessarily checked the existence of numerical user and group ids on
extraction. If one of them did not exist the respective id of the current user
(i.e. root) was used for the file and ownership information was lost. (Patch
by Sebastien Luttringer)
2011-09-05 17:04:18 +02:00
Éric Araujo 0f2dbf3645 Warn instead of crashing because of invalid path in MANIFEST.in (#8286).
sdist used to crash with a full traceback dump instead of printing a
nice warning with the faulty line number.
2011-09-03 00:47:07 +02:00
Éric Araujo cb18d077c6 Enable catching WARN-level logging messages in distutils' test_sdist 2011-09-03 00:28:43 +02:00
Amaury Forgeot d'Arc cf316a171e Issue #12764: Fix a crash in ctypes when the name of a Structure field is not
a string.
2011-09-02 20:32:23 +02:00
Éric Araujo 1fc20760c7 Remove obsolete comment 2011-09-01 22:06:49 +02:00
Éric Araujo 2532f11321 Clarify compileall command-line options (#10454).
Backport of R. David Murray’s 3.2 patch.  The code is ugly, with print
statements split across lines, but the output is readable.
2011-09-01 20:04:50 +02:00
Éric Araujo a971df3cd5 Fix test_sysconfig when run from a Python installed under /site (#10086).
Patch by Hallvard B Furuseth.
2011-08-31 16:48:17 +02:00
Amaury Forgeot d'Arc 3d7f236329 Issue #9651: Fix a crash when ctypes.create_string_buffer(0) was passed to
some functions like file.write().
2011-08-30 21:04:35 +02:00
Éric Araujo 429b890561 Make bdist_* commands respect --skip-build passed to bdist (#10946) 2011-08-30 01:48:59 +02:00
Nadeem Vawda 66e53c70d7 Fix test failures when Python is compiled without thread support. 2011-08-29 09:37:07 +02:00
Antoine Pitrou 0ad7358c2f Provide a better diagnosis on socket errors 2011-08-28 01:18:31 +02:00
Éric Araujo 288ebb446e Add FIXME note as a reminder 2011-08-26 16:35:19 +02:00
Éric Araujo 1bd3b9cea0 Branch merge 2011-08-26 16:32:36 +02:00
Éric Araujo e10fbb1550 Backport tests for the distutils install command 2011-08-26 02:06:27 +02:00
Éric Araujo cea5fc0b7b Try to fix test_distutils on Windows (#12678) 2011-08-26 02:05:44 +02:00
Éric Araujo c811fb2d56 Add tests for build_ext --user (backport from 3.2) 2011-08-26 02:00:14 +02:00
Éric Araujo 04612d6092 Refactor helpers for compiling the xx module in distutils tests.
I need to copy the xxmodule.c file in other tests, so I moved the
support code to distutils.tests.support and improved it:
- don’t skip when run from the Lib/distutils/tests directory
- use proper skip machinery instead of custom print/return/test suite
  fiddling.

I also took out the fixup_build_ext function, which is needed for tests
to pass on Unix shared builds and Windows debug builds.

Finally, I cleaned up a few things:
- don’t remove directories in tearDown when the parent class’ tearDown
  has already registered the directories for removal
- simplify restoration of sys.path
- remove a few unused names found by pyflakes.
2011-08-26 01:56:15 +02:00
Charles-François Natali 2a34eb3104 Issue #12786: Set communication pipes used by subprocess.Popen CLOEXEC to avoid
them being inherited by other subprocesses.
2011-08-25 21:20:54 +02:00
Raymond Hettinger 8a9369bfa4 Update link to the decimal arithmetic specification. 2011-08-24 19:13:17 -07:00
Antoine Pitrou 77657e40fa Issue #4106: Fix occasional exceptions printed out by multiprocessing on interpreter shutdown.
This bug doesn't seem to exist on 3.2, where daemon threads are killed
before Py_Finalize() is entered.
2011-08-24 22:41:05 +02:00
Antoine Pitrou a1a8da8bf5 Issue #11657: Fix sending file descriptors over 255 over a multiprocessing Pipe.
Also added some tests.
2011-08-23 19:54:20 +02:00
Charles-François Natali cdaafe0f9e Issue #12821: Fix test_fcntl failures on OpenBSD 5. 2011-08-23 19:42:02 +02:00
Ezio Melotti 12682b10a7 #9200: backport tests but run them on wide builds only. 2011-08-22 23:46:30 +03:00
Nadeem Vawda 367d4c8a80 Issue #12678: Fix distutils sdist test on Windows.
Patch by Jeremy Kloth.
2011-08-21 22:40:04 +02:00
Éric Araujo 04295009b8 Add missing name in shutil.__all__ 2011-08-21 16:14:01 +02:00
Sandro Tosi a75039ad88 #5301: add image/vnd.microsoft.icon (.ico) MIME type 2011-08-21 00:15:56 +02:00
Antoine Pitrou 808cec536a Issue #12213: Fix a buffering bug with interleaved reads and writes that
could appear on io.BufferedRandom streams.
2011-08-20 15:40:58 +02:00
Éric Araujo 410024a8fc Branch merge 2011-08-19 14:24:38 +02:00
Nadeem Vawda 860593653b Fix resource leaks in test_subprocess. 2011-08-19 05:22:24 +02:00
Éric Araujo e7329f47e7 Guard shutil._make_archive against a logger=None argument.
Backporting two lines from the 3.x tests was enough to trigger the bug.
I also took the opportunity of making the logging call lazy.
2011-08-19 03:07:39 +02:00
Charles-François Natali a8085d306e Issue #12650: fix failures on some buildbots, when a subprocess takes a long
time to spawn.
2011-08-19 00:26:38 +02:00
Charles-François Natali 100df0f2b0 Issue #12650: only run the tests on Unix. 2011-08-18 17:56:02 +02:00
Charles-François Natali b02302c5cf Issue #12650: Fix a race condition where a subprocess.Popen could leak
resources (FD/zombie) when killed at the wrong time.
2011-08-18 17:18:28 +02:00
Barry Warsaw edfba8244c The simplest possible fix for the regression in bug 12752 by encoding unicodes
to 8-bit strings.
2011-08-15 19:17:12 -04:00
Ezio Melotti ea7b6f6e2a #12266: move the tests in test_unicode. 2011-08-15 10:04:28 +03:00
Ezio Melotti 15d6b65ead #12266: Fix str.capitalize() to correctly uppercase/lowercase titlecased and cased non-letter characters. 2011-08-15 09:22:24 +03:00
Senthil Kumaran 93e6a3d28f Remove the un-exercised in-module test code. 2011-08-10 21:57:22 +08:00
Raymond Hettinger 3ea5224c43 Issue 12717: Fix-up an earlier backport in ConfigParser. 2011-08-09 12:07:15 -07:00
Sandro Tosi 1381a31e39 #12677: correct turtle orientation in doc 2011-08-07 17:09:15 +02:00
Senthil Kumaran ef651ac162 whitespace fix. 2011-08-07 10:03:58 +08:00
Senthil Kumaran 351950fbfc Remove the old dead test program within the module in 2.7. 2011-08-07 10:02:49 +08:00
Senthil Kumaran b5bd4c88b5 Fix closes issue12698 - make the no_proxy environment variable handling a bit lenient (accomodate spaces in between the items) 2011-08-06 12:24:33 +08:00
Senthil Kumaran 28696fe491 add svn+ssh testcase for urljoin. 2011-08-03 22:06:05 +08:00
Senthil Kumaran 0df24c9e0c include svn+ssh as well. 2011-08-03 18:40:18 +08:00
Senthil Kumaran f432aeca7c Fix closes issue12683 - urljoin to work with relative join of svn scheme. 2011-08-03 18:31:59 +08:00
Éric Araujo 3427839c93 Branch merge 2011-08-02 20:01:54 +02:00
Éric Araujo 33af263d36 Fix incorrect mtime comparison in distutils (#11933).
This is a regression introduced in 9211a5d7d0b4, when uses of ST_MTIME
constants were changed to uses of st_mtime attributes.  As diagnosed in
the bug report, this change is not merely stylistic: st_mtime is a
float but ST_MTIME’s resolution is rounded to the seconds, so there was
a mismatch between the values seen by file_util and dep_util which
caused an sdist to be unnecessarily created a second time on an ext4
filesystem.

This patch has been tested by John S. Gruber, who reported the bug.
As this is a simple code revert, I think it’s okay to commit without a
unit test.
2011-08-02 03:16:12 +02:00
Stefan Krah 01a3ee8b21 Backport 68b5f87566fb 2011-08-02 01:17:48 +02:00
Éric Araujo 0db7f72cc7 Branch merge 2011-08-01 14:48:19 +02:00
Éric Araujo 498da2c162 Stop trying to write into the stdlib during lib2to3 tests (#12331).
This prevents tests from failing when run from a Python installed in a
read-only directory.
2011-07-31 17:59:28 +02:00
Benjamin Peterson 3facb8cc1a running tests enables us to discover that they actually work 2011-07-30 23:39:39 -05:00
Senthil Kumaran 23c2104118 using test_support.transient_internet helper method in the urllib2net test. 2011-07-31 11:48:54 +08:00
Éric Araujo 560bf855d3 Fix regression with distutils MANIFEST handing (#11104, #8688).
The changed behavior of sdist in 2.7 broke packaging for projects that
wanted to use a manually-maintained MANIFEST file (instead of having a
MANIFEST.in template and letting distutils generate the MANIFEST).

The fixes that were committed for #8688 (d29399100973 by Tarek and
f7639dcdffc3 by me) did not fix all issues exposed in the bug report,
and also added one problem: the MANIFEST file format gained comments,
but the read_manifest method was not updated to handle (i.e. ignore)
them.  This changeset should fix everything; the tests have been
expanded and I successfully tested with Mercurial, which suffered from
this regression.

I have grouped the versionchanged directives for these bugs in one place
and added micro version numbers to help users know the quirks of the
exact version they’re using.  I also removed a stanza in the docs that
was forgotten in Tarek’s first changeset.

Initial report, thorough diagnosis and patch by John Dennis, further
work on the patch by Stephen Thorne, and a few edits and additions by
me.
2011-07-31 02:04:00 +02:00
Éric Araujo 9a528306b9 Make “pydoc somebuiltin.somemethod” work (#8887) 2011-07-29 17:34:35 +02:00
Éric Araujo 345fff3de8 Remove mentions of previous license in profile module (#12417 followup) 2011-07-28 22:27:28 +02:00
Benjamin Peterson 5ac56d275d fix ws 2011-06-28 21:57:21 -05:00
Benjamin Peterson 1105f34a2b update profile license (closes #12417) 2011-06-27 09:14:34 -05:00
Éric Araujo fea8ac4772 Branch merge 2011-07-29 14:23:13 +02:00
Raymond Hettinger 55e5e27b74 Issue 12514: Use try/finally to assure that timeit restores GC when done. 2011-07-28 23:56:38 -07:00
Senthil Kumaran 4af1c6a4fc Fix closes Issue11439 - Handle the SVN Keywords in 2.7 by replacing them with a high number so that code relying on them does not break. 2011-07-28 22:30:27 +08:00
Charles-François Natali 0cf7e25c28 - Issue #12603: Fix pydoc.synopsis() on files with non-negative st_mtime. 2011-07-27 19:36:40 +02:00
Ross Lagerwall d8e3901478 Issue #12607: In subprocess, fix issue where if stdin, stdout or stderr is
given as a low fd, it gets overwritten.
2011-07-27 18:54:53 +02:00
Senthil Kumaran 7d7702b581 merge from 3.2 - fix urlopen behavior on sites which do not send (or obsfuscates) Connection: Close header. 2011-07-27 09:37:17 +08:00
Ned Deily d8b1723965 Issue #12590: IDLE editor window now always displays the first line
when opening a long file.  With Tk 8.5, the first line was hidden.
2011-07-26 18:16:08 -07:00
Ned Deily d88131afd9 Issue #8746: Use tempfile module to get tempdir and randomize the
link file name.
2011-07-26 13:52:14 -07:00
Antoine Pitrou 4cfae027b3 Issue #1813: Fix codec lookup and setting/getting locales under Turkish locales. 2011-07-24 02:51:01 +02:00
Nadeem Vawda a620facc1f Fix typo in dbf1e1a27427 that was causing some buildbots to fail. 2011-07-23 17:04:42 +02:00
Nadeem Vawda b42c53e442 Issue #10883: Fix socket leaks in urllib.request.
* ftpwrapper now uses reference counting to ensure that the underlying socket
  is closed when the ftpwrapper object is no longer in use
* ftplib.FTP.ntransfercmd() now closes the socket if an error occurs

Initial patch by Victor Stinner.
2011-07-23 15:51:16 +02:00
Senthil Kumaran 578617ad45 merge from 3.2 - Fix closes issue12581 - Increase the urllib.parse test coverage (cases applicable to 2.7). Patch by Petter Haggholm. 2011-07-23 18:41:43 +08:00
Benjamin Peterson 77820242dd verify the types of AST strings and identifiers (closes #12609 and #12610) 2011-07-22 10:39:50 -05:00
Ezio Melotti 56b2665904 #12601: fix typo. 2011-07-21 11:18:18 +03:00
Antoine Pitrou 495ee8f563 Issue #12571: Add a plat-linux3 directory mirroring the plat-linux2 directory,
so that "import DLFCN" and other similar imports work on Linux 3.0.
2011-07-20 00:26:23 +02:00
R David Murray 9522595d70 #7484: no more <> around addresses in VRFY or EXPN
The RFC doesn't say that they are allowed; apparently many mailers accept
them, but not postfix.  Contributions to this patch were made by Felipe Cruz
and Catalin Iacob.
2011-07-18 21:34:04 -04:00
Alex Gaynor 9737648c74 Backport 2eb8789e30e7. 2011-07-17 16:44:31 -07:00
Antoine Pitrou 304f0f952d Issue #11603: Fix a crash when __str__ is rebound as __repr__.
Patch by Andreas Stührk.
2011-07-15 21:22:50 +02:00
Benjamin Peterson c3349cd22e port 8d05f697acd4 (#11627) 2011-07-15 14:15:40 -05:00
Charles-François Natali 2659140a5d Issue #12502: asyncore: fix polling loop with AF_UNIX sockets. 2011-07-14 19:49:02 +02:00
Victor Stinner b30ac940db Issue #12250: test_socketserver uses a timeout of 60 seconds instead of 20
test_shutdown() may fail on very slow buildbots like FreeBSD 6.4 just because
of the arbitrary timeout.
2011-07-14 14:53:24 +02:00
Benjamin Peterson 2e7ea507d6 carefully cleanup pointer cache after creating struct pointers 2011-07-13 23:09:30 -05:00
Ned Deily 0ab67ee79e Issue #12549: Correct test_platform to not fail when OS X returns 'x86_64'
as the processor type on some Mac systems.  Also fix NameError in fallback
_mac_ver_gestalt function.  And remove out-of-date URL in docs.
2011-07-13 15:05:31 -07:00
Victor Stinner bf547fd3f2 Close #4376: ctypes now supports nested structures in a endian different than
the parent structure. Patch by Vlad Riscutia.
2011-07-13 21:47:31 +02:00
Benjamin Peterson 83c14fe1ee this can be done without a custom dict (also fixes #12544) 2011-07-12 19:21:42 -05:00
Antoine Pitrou 1616645a00 Issue #12149: Update the method cache after a type's dictionnary gets
cleared by the garbage collector.  This fixes a segfault when an instance
and its type get caught in a reference cycle, and the instance's
deallocator calls one of the methods on the type (e.g. when subclassing
IOBase).

Diagnosis and patch by Davide Rizzo.
2011-07-12 22:04:20 +02:00
Antoine Pitrou 4a4a0fed07 Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
failure in name resolution.

Should fix a buildbot failure.
2011-07-09 02:34:05 +02:00
Antoine Pitrou 2960308c0c Avoid failing in test_robotparser when mueblesmoraleda.com is flaky and
an overzealous DNS service (e.g. OpenDNS) redirects to a placeholder
Web site.
2011-07-08 19:40:15 +02:00
Antoine Pitrou a4d58d26a1 Avoid failing in test_urllibnet.test_bad_address when some overzealous
DNS service (e.g. OpenDNS) resolves a non-existent domain name.  The test
is now skipped instead.
2011-07-08 19:14:19 +02:00
Victor Stinner ba8b3a2ca7 Close #12501: Adjust callable() warning: callable() is only not supported in
Python 3.1. callable() is again supported in Python 3.2.
2011-07-08 02:07:45 +02:00
Ned Deily 885b164bfe Issue #8716: Instead of relying on Aqua Tk exceptions to detect lack of
OS X window manager connection in tk tests, use OS X Application Services
API calls instead.
2011-07-05 19:08:38 -07:00
Ned Deily 09f6ab0d0f Issue #8716: Back out temporary changeset 18ce15f841cf 2011-07-05 15:09:32 -07:00
Ned Deily 8c653e094b Issue #8716: Add temporary code for 2.7 to help diagnose buildbot failure. 2011-07-05 14:16:03 -07:00
Victor Stinner b78fed9ee6 Issue #12493: skip test_communicate_eintr() if signal.SIGALRM is missing 2011-07-05 14:50:35 +02:00
Victor Stinner e790131dc6 Issue #12493: subprocess: communicate() handles EINTR
subprocess.Popen.communicate() now also handles EINTR errors if the process has
only one pipe.
2011-07-05 14:08:01 +02:00
Victor Stinner 4c41f84033 test_io: make quiet the DeprecationWarning('classic int division') 2011-07-05 13:29:26 +02:00
Victor Stinner 42dcc679c2 test_array: make quiet the DeprecationWarning 2011-07-05 13:14:17 +02:00
Victor Stinner 49d495fa25 Issue #12429: Skip interrupted write tests on FreeBSD <= 7
On FreeBSD, the SIGALRM signal is sometimes received by the reader thread.
2011-07-04 11:44:46 +02:00
Ned Deily eee1048e7b Issue #8716: Fix errors in the non-OS X path of the 27 backport. 2011-07-03 23:16:49 -07:00
Ned Deily 46268c49f6 Issue #8716: Avoid crashes caused by Aqua Tk on OSX when attempting to run
test_tk or test_ttk_guionly under a username that is not currently logged
in to the console windowserver (as may be the case under buildbot or ssh).
2011-07-03 21:52:35 -07:00
Ned Deily 9a7a4cc3a7 Issue #10734: Temporarily disable test_ttk test_heading_callback on 2.7 as well. 2011-07-03 21:37:03 -07:00
Victor Stinner 65c153547b Issue #12467: warnings: fix a race condition if a warning is emitted at
shutdown, if globals()['__file__'] is None.
2011-07-04 03:05:37 +02:00
Senthil Kumaran 13502b19c6 Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an incorrect arg. 2011-07-03 17:38:53 -07:00
Charles-François Natali 7c20ad32fd Issue #12352: In test_free_from_gc(), restore the GC thresholds even if the GC
wasn't enabled at first.
2011-07-02 14:08:27 +02:00
Charles-François Natali 414d0faedc Issue #12352: Fix a deadlock in multiprocessing.Heap when a block is freed by
the garbage collector while the Heap lock is held.
2011-07-02 13:56:19 +02:00
Victor Stinner 041d2e1e1e Issue #11870: Skip test_threading.test_2_join_in_forked_process() on platforms
with known OS bugs

Share the list of platforms with known OS bugs with other tests. Patch written
by Charles-François Natali.
2011-07-01 15:04:03 +02:00
Raymond Hettinger bf7a266074 Fixup repr for dict_proxy objects. 2011-06-30 00:44:36 +01:00
Ned Deily 041645a8cb Issue #9516: Change distutils to no longer globally attempt to check and
set the MACOSX_DEPLOYMENT_TARGET env variable for the interpreter process
on OS X.  This could cause failures in non-distutils subprocesses and was
unreliable since tests or user programs could modify the interpreter
environment after distutils set it.  Instead, have distutils set the
the deployment target only in the environment of each build subprocess.

Continue to use the previous algorithm for deriving the deployment target
value:
    if MACOSX_DEPLOYMENT_TARGET is not set in the interpreter's env:
        use the interpreter build configure MACOSX_DEPLOYMENT_TARGET
    elif the MACOSX_DEPLOYMENT_TARGET env value >= configure value:
        use the env MACOSX_DEPLOYMENT_TARGET
    else: # env value less than interpreter build configure value
        raise exception
This allows building extensions that can only run on newer versions of
the OS than the version python was built for, for example with a python
built for 10.3 or later and an extension that needs to be built for 10.5.
2011-06-28 19:40:39 -07:00
Ned Deily 053c6ad6b7 Issue #9516: Correct and expand OS X deployment target tests in distutils
test_build_ext.
2011-06-28 19:39:10 -07:00
Ned Deily 63144c6444 Issue #12141: Install a copy of template C module file so that
test_build_ext of test_distutils is no longer silently skipped when
run outside of a build directory.
2011-06-28 00:39:19 -07:00
Ned Deily 43e1054e38 Issue #8746: Correct faulty configure checks so that os.chflags() and
os.lchflags() are once again built on systems that support these
functions (*BSD and OS X).  Also add new stat file flags for OS X
(UF_HIDDEN and UF_COMPRESSED).  Also add additional tests for
os.chflags() and os.lchflags(). (Tests by Garrett Cooper)
2011-06-27 23:41:53 -07:00
Ned Deily 64e59959f2 Issue #10736: Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9
on Mac OS X.  (Patch by Ronald Oussoren)
2011-06-27 23:09:31 -07:00
Benjamin Peterson c98198d3ca fix ws 2011-06-27 17:51:18 -05:00
Benjamin Peterson 90ebedc626 add more ast tests (closes #11302)
A patch from Vincent Legoll.
2011-06-27 17:46:06 -05:00
Benjamin Peterson cfb7731dd2 strip trailing ws 2011-06-27 09:18:46 -05:00
Benjamin Peterson 7e6b3aac85 update profile license (closes #12417) 2011-06-27 09:14:34 -05:00
Senthil Kumaran e4ef726879 Fix closes issue1067702 The problem with close multiple ftp transfers were due cases where sockets/file were not closed immediately. Tightned those cases and failure is no longer observed. 2011-06-26 13:45:17 -07:00
Raymond Hettinger 2c316a3e29 Issue 11802: filecmp cache was growing without bound. 2011-06-25 17:14:53 +02:00
Raymond Hettinger 67a3e8336f Issue 10326: Fix regression to get test cases to pickle again. 2011-06-25 12:16:25 +02:00
Raymond Hettinger cba87311d2 Code simplification suggested by Sven Marnach. 2011-06-25 11:24:35 +02:00
Victor Stinner ecb863b29e Revert d370d609d09b as requested by Terry Jan Reedy:
"#3067: locale.setlocale() accepts a Unicode locale."
2011-06-20 22:07:06 +02:00
Victor Stinner f64a0cffca Issue #12285: multiprocessing.Pool() raises a ValueError if the number of
processes if negative or null.
2011-06-20 17:54:33 +02:00
Victor Stinner c36c6ccb41 Close #3067: locale.setlocale() accepts a Unicode locale. 2011-06-20 16:14:48 +02:00
R David Murray f1138bb1b6 #11700: proxy object close methods can now be called multiple times
This makes them work like the close provided by regular file objects.  This
patch also backports the close-the-underlying-file code for _ProxyFile objects
that was introduced along with context manager support in the 3.x branch.
2011-06-17 22:23:04 -04:00
Victor Stinner c74a6ba2d6 Issue #12133: AbstractHTTPHandler.do_open() of urllib.request closes the HTTP
connection if its getresponse() method fails with a socket error. Patch written
by Ezio Melotti.
2011-06-17 14:06:27 +02:00
Benjamin Peterson 0eb4ac4c62 allow "fake" filenames in findsource (closes #9284)
This allows findsource() to work in doctests.

A patch from Dirkjan Ochtman.
2011-06-11 15:53:11 -05:00
Benjamin Peterson a573e0df36 merge 2.7.2 release branch 2011-06-11 09:51:21 -05:00
Benjamin Peterson 377510d2d9 update pydoc-topics 2011-06-11 09:50:21 -05:00
Benjamin Peterson 9843ba5e54 bump to 2.7.2 final 2011-06-11 09:42:44 -05:00
Benjamin Peterson b30d5c711e merge heads 2011-06-10 11:33:58 -05:00
Benjamin Peterson 8b8162d868 merge 2.7.2 release branch with fix for #12009 2011-06-10 11:33:41 -05:00
Benjamin Peterson 43ee1a5d90 fix regression in netrc comment handling (closes #12009) 2011-06-10 11:32:52 -05:00
R David Murray 873c583244 #10694: zipfile now ignores garbage at the end of a zipfile.
Original fix by 'rep', final patch (with tests) by Xuanji Li.
2011-06-09 16:01:09 -04:00
Brian Curtin 5446f08c60 Correction to f1509fc75435 - Issue #11583
Rather than wrapping the C _isdir function in a Python function,
just import the C _isdir function directly. Additionally, add in the
docstring which was left out.
2011-06-09 10:00:42 -05:00
Brian Curtin caea7e8d23 Merge 2011-06-08 19:29:53 -05:00
Éric Araujo ce5493f33d Branch merge 2011-06-06 17:11:31 +02:00
Éric Araujo 865b573c04 Remove unnecessary executable bit on one distutils file 2011-06-04 20:45:33 +02:00
Mark Dickinson a493ca3fae Issue #12080: Fix a performance issue in Decimal._power_exact that caused some corner-case Decimal.__pow__ calls to take an unreasonably long time. 2011-06-04 18:24:15 +01:00
Barry Warsaw 16ec24a192 Replay svn r88850. 2011-06-03 20:02:47 -04:00
Victor Stinner e3826c7774 Issue #12016: Add test_errorhandle() to TestBase_Mapping of
test_multibytecodec_support. Improve also error message of the
test_errorhandle() of TestBase.
2011-06-03 23:56:43 +02:00
Raymond Hettinger 45b082935d Fix named tuples to work with vars(). 2011-06-02 20:40:35 -07:00
Victor Stinner e9b185f263 Issue #12085: Fix test_subprocess for my previous commit
Replace support by test_support, and add captured_stderr() function.
2011-06-01 01:57:48 +02:00
Victor Stinner 776e69b5b3 Close #12085: Fix an attribute error in subprocess.Popen destructor if the
constructor has failed, e.g. because of an undeclared keyword argument. Patch
written by Oleg Oshmyan.
2011-06-01 01:03:00 +02:00
Victor Stinner d9f5292443 Issue #12057: Add tests for ISO 2022 codecs
iso2022_jp, iso2022_jp_2 and iso2022_kr
2011-05-30 23:58:21 +02:00
Benjamin Peterson cd20705902 bump to 2.7.2rc1 2011-05-29 16:50:27 -05:00
Éric Araujo 8c0c9d2641 Branch merge 2011-05-29 17:57:29 +02:00
Éric Araujo be77831375 Fix test_distutils when sys.dont_write_bytecode is true (#9831).
The tests now pass all combinations of -O/-OO and -B.  See also #7071
and #6292 for previous variations on the same theme.
2011-05-28 23:21:19 +02:00
Ned Deily 482f908410 Issue #9670: Increase the default stack size for secondary threads on
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(patch by Ronald Oussoren)
2011-05-28 00:11:54 -07:00
Éric Araujo beb9170cc4 Merge #12417 followup, also removing an extra docstring 2011-07-28 22:32:04 +02:00
Benjamin Peterson 1e94021ea5 merge heads 2011-05-26 09:57:21 -05:00
Benjamin Peterson 4fa68ab10b raise an ValueError in getvalue() on closed StringIO (closes #12161)
Thanks for Catalin Iacob for the patch.
2011-05-26 09:56:41 -05:00
Éric Araujo 8fcda6829a Branch merge 2011-05-26 16:52:22 +02:00
Victor Stinner dbfba1667c Close #12182: Fix pydoc.HTMLDoc.multicolumn() if Python uses the new (true)
division (python -Qnew). Patch written by Ralf W. Grosse-Kunstleve.
2011-05-26 13:37:25 +02:00
Kurt B. Kaiser a5392455f6 IDLE: #6378: Further adjust idle.bat to start associated Python 2011-05-25 22:36:51 -04:00
Victor Stinner daf17e9bc8 Issue #12175: RawIOBase.readall() now returns None if read() returns None. 2011-05-25 22:52:37 +02:00
Victor Stinner 5100a405dc Issue #12175: FileIO.readall() now raises a ValueError instead of an IOError if
the file is closed.
2011-05-25 22:15:36 +02:00
Éric Araujo 31890bc9ba Fix display of html.parser.HTMLParser.feed docstrin 2011-05-25 18:11:43 +02:00
Éric Araujo ea088c5163 Add missing name in pkgutil.__all__ 2011-05-25 18:11:24 +02:00
Éric Araujo 78d9133989 Branch merge 2011-05-25 18:06:35 +02:00
Victor Stinner 9e5cdcc243 Issue #12057: Add tests for the HZ encoding 2011-05-25 00:19:07 +02:00
Charles-François Natali b94e0cde60 Issue #1441530: In imaplib, use makefile() to wrap the SSL socket to avoid
heap fragmentation and MemoryError with some malloc implementations.
2011-05-24 23:10:54 +02:00
Victor Stinner 40b41e1ffd Issue #12100: Don't reset incremental encoders of CJK codecs at each call to
their encode() method anymore, but continue to call the reset() method if the
final argument is True.
2011-05-24 22:29:13 +02:00
Benjamin Peterson 8de87a6403 correctly lookup __dir__ 2011-05-23 16:11:05 -05:00
Barry Warsaw 34289260da Replay changeset 70248:c714e2f92f63 from fubar branch. Original commit
message:

Cross-port changes for 2.6.7rc2 from the Subversion branch.
2011-05-23 15:26:11 -04:00
Barry Warsaw cf0d8ab818 Replay changeset 70238:03e488b5c009 from fubar branch. Original commit
message:

Reconcile with the 2.6svn branch.  The 2.6.7 release will be made from
Subversion, but there were differences, so this brings them in sync.  These
changes should *not* propagate to any newer versions.
2011-05-23 15:22:56 -04:00
Victor Stinner 6c603c4593 test_codecs now removes the temporay file (created by the test) 2011-05-23 16:19:31 +02:00
Victor Stinner 2e7f39e889 Issue #12012: test_ssl uses test_support.import_module()
Skip the whole file if the SSL module is missing. It was already the case,
except that the SkipTest exception was raised in test_main().

This commit fixes an error in test_ssl if the ssl module is missing.
2011-05-22 13:22:28 +02:00
Victor Stinner f58f1c33c1 Issue #12124: zipimport doesn't keep a reference to zlib.decompress() anymore
to be able to unload the module.
2011-05-21 02:13:22 +02:00
Raymond Hettinger 22d8f7b9b8 Minor code cleanup. 2011-05-18 17:28:50 -05:00
Victor Stinner 2c5e28ebc2 Issue #12057: Fix .hgeol and test_multibytecodec_support for the conversion of
the CJK encoding testcase BLOB into multiple text files.
2011-05-17 15:49:56 +02:00
Ronald Oussoren b13cacf677 (backport) Fixes #11088: IDLE crashes when using F5 to run a script on OSX with Tk 8.5
Without this patch IDLE will crash reliably on OSX when Tkinter
is linked to TkCocoa 8.5.x.

To reproduce:

* Create a new file (script.py) with the following two lines:

x = raw_input('prompt: ')
print x

* Save the script

* Run the script using the F5 keyboard shortcut
  (running from the menu works fine)

The patch is a fairly crude hack, but we haven't found a better
workaround for this Tk bug yet.
2011-05-17 15:13:46 +02:00
Ronald Oussoren 372954e059 (backport)Fix #10154 and #10090: locale normalizes the UTF-8 encoding to "UTF-8" instead of "UTF8"
On MacOSX and OpenBSD (and possibly other BSDs) "en_US.UTF-8" is a valid locale
while "en_US.UTF8" is not. As the former works on Linux as well it is better
to normalize to that value.
2011-05-17 13:22:30 +02:00
Senthil Kumaran 4dd89ce6bf Fix closes issue #12088 - fixes the tarfile.extractall issue when the
symlinks/hardlink was broken. It handles now in a graceful manner (No exception
is raised, behavior similar GNU tar).
2011-05-17 10:12:18 +08:00
Victor Stinner 72bb99d343 Issue #11614: Fix test_linecache, cjkencodings_test.py doesn't exist anymore 2011-05-17 01:18:33 +02:00
Victor Stinner 73e3e76be5 Issue #12057: Convert CJK encoding testcase BLOB into multiple text files 2011-05-16 17:16:18 +02:00
Ronald Oussoren a70286b71d Issue #9516: avoid errors in sysconfig when MACOSX_DEPLOYMENT_TARGET is set in shell.
Without this patch python will fail to start properly when the environment
variable MACOSX_DEPLOYMENT_TARGET is set on MacOSX and has a value that is
not compatible with the value during Python's build. This is caused by code
in sysconfig that was only meant to be used in disutils.
2011-05-15 16:44:27 +02:00
Gregory P. Smith fb1d60c800 Fixes Issue #12059: Properly handle missing hash functions even when
the expected builtin modules are not present.

This includes a unittest for __get_builtin_constructor() in the face
of such an error.
2011-05-14 15:07:53 -07:00
Nadeem Vawda 0cc4fd9df7 Issue #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail
attribute when called without a max_length argument.
2011-05-14 14:29:07 +02:00
Ezio Melotti 4dcb7be696 #7960: fix docstrings for captured_output and captured_stdout. 2011-05-14 08:19:43 +03:00
Ezio Melotti e3992eb743 #5723: Improve json tests to be executed with and without accelerations. 2011-05-14 06:24:53 +03:00
Ezio Melotti 720f8dea19 Change import_fresh_module to work with packages. 2011-05-14 06:02:25 +03:00
Kurt B. Kaiser d82a8876f0 Issue #11896: Save on Close failed despite selecting "Yes" in dialog.
Backport 70055:35ed0efd7dd3
2011-05-12 21:18:47 -04:00
Antoine Pitrou ee46a7bf9c Issue #12062: In the `io` module, fix a flushing bug when doing a certain
type of I/O sequence on a file opened in read+write mode (namely: reading,
seeking a bit forward, writing, then seeking before the previous write but
still within buffered data, and writing again).
2011-05-13 00:31:52 +02:00
Ezio Melotti c1ec7b5d44 #12051: Fix segfault in json.dumps() while encoding highly-nested objects using the C accelerations. 2011-05-11 00:55:35 +03:00
Antoine Pitrou 47d1d0dc30 Issue #8498: In socket.accept(), allow to specify 0 as a backlog value in
order to accept exactly one connection.  Patch by Daniel Evers.
2011-05-10 19:16:03 +02:00
Victor Stinner b1241f9619 (Merge 3.1) Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional
OpenSSL is now compiled with OPENSSL_NO_SSL2 defined (without the SSLv2
protocol) on Debian: fix the ssl module on Debian Testing and Debian Sid.

Optimize also ssl.get_protocol_name(): speed does matter!
2011-05-10 01:52:03 +02:00
Ezio Melotti b47553a19b Some more tests were incorrectly marked as C specific. 2011-05-09 18:32:18 +03:00
Martin v. Löwis 591c2dfa42 Issue 11164: Remove obsolete allnodes test from minidom test.
Patch by Arfrever Frehtes Taifersar Arahesis.
2011-05-09 08:19:13 +02:00
Ezio Melotti 5c5d7e2511 #11910: Fix test_heapq to skip the C tests when _heapq is missing. 2011-05-09 06:54:53 +03:00
Ezio Melotti 193c34ba86 #11910: change import_fresh_module to return None when one of the "fresh" modules can not be imported. 2011-05-09 06:28:42 +03:00
Ezio Melotti 7055064bbb Fix deprecation warnings in test_unittest. 2011-05-09 05:58:17 +03:00
Benjamin Peterson 01c9a16031 import_fresh_module ought to be in __all__ 2011-05-08 15:32:04 -05:00
Éric Araujo b76eb9743e Make test_distutils pass without zlib (fixes #9435) 2011-05-08 16:27:13 +02:00
Raymond Hettinger 1bd816e58e Fix cut and paste error. 2011-05-07 15:19:34 -07:00
Raymond Hettinger 8dd0624660 Some tests were incorrectly marked as C specific. 2011-05-07 14:16:42 -07:00
Antoine Pitrou 21ce8f0d66 Issue #11927: SMTP_SSL now uses port 465 by default as documented. Patch by Kasun Herath. 2011-05-07 19:59:33 +02:00
Ezio Melotti 0639be6505 #10169: Fix argument parsing in socket.sendto() to avoid error masking. 2011-05-07 19:21:22 +03:00
Ezio Melotti cec464951e #12017: Fix segfault in json.loads() while decoding highly-nested objects using the C accelerations. 2011-05-07 17:40:23 +03:00
Nadeem Vawda 5ae6c42f52 Fix potential resource leak in test_mmap. 2011-05-07 14:34:22 +02:00
Nadeem Vawda d0a8f16031 Issue #11277: Fix tests - crash will not trigger if the file is closed and reopened. 2011-05-07 14:12:12 +02:00
Nadeem Vawda 0d837ef2a5 Issue #11277: Add tests for mmap crash when using large sparse files on OS X.
Also, reduce code duplication in LargeMmapTests.

Original patch by Steffen Daode Nurpmeso.
2011-05-07 13:17:16 +02:00
Nadeem Vawda 3b066a7e82 Issue #11277: Remove useless test from test_zlib. 2011-05-07 11:28:03 +02:00
R David Murray 8b26c4b8ea #11999: sync based on comparing mtimes, not mtime to system clock 2011-05-06 21:56:22 -04:00
Ronald Oussoren 58d6b1b7a4 Backport fix for issue #10684 from 3.x 2011-05-06 11:31:33 +02:00
R David Murray a436e713b6 #8158: add missing 'description' description to optparse docstring. 2011-05-04 21:05:52 -04:00
Victor Stinner 28a8e96378 Issue #11277: oops, fix checksum values of test_zlib on 32 bits 2011-05-04 21:40:36 +02:00
Victor Stinner 7fd90c403d Issue #11277: test_zlib tests a buffer of 1 GB on 32 bits
(instead of a buffer of 2 GB)
2011-05-04 21:27:39 +02:00
Ezio Melotti 6fa0947285 #11985: update docstring of platform.python_implementation. 2011-05-04 18:37:50 +03:00
Victor Stinner fb5d3e75bb Issue #11277: fix issue number in a test_zlib comment 2011-05-04 14:02:11 +02:00
Ezio Melotti df8a8f768d #11982: fix json.loads('""') to return u'' rather than ''. 2011-05-04 14:40:53 +03:00
Victor Stinner e4163e2c8d Issue #10276: Fix test_zlib, m may be undefined in the finally block 2011-05-03 17:25:28 +02:00
Victor Stinner f9fb43492c Issue #10276: test_zlib checks that inputs of 2 GB are handled correctly by
crc32() and adler32(). Patch written by Steffen Daode Nurpmeso.
2011-05-03 15:19:23 +02:00
Victor Stinner 0a92d1849e Issue #8651: PyArg_Parse*() functions raise an OverflowError if the file
doesn't have PY_SSIZE_T_CLEAN define and the size doesn't fit in an int (length
bigger than 2^31-1 bytes).
2011-05-03 15:09:24 +02:00
Éric Araujo cfa8483051 Branch merge 2011-05-02 13:36:18 +02:00
Victor Stinner e363ec1057 (Merge 3.1) Issue #9756: When calling a method descriptor or a slot wrapper
descriptor, the check of the object type doesn't read the __class__ attribute
anymore.  Fix a crash if a class override its __class__ attribute (e.g. a proxy
of the str type).
2011-05-01 23:43:37 +02:00
Éric Araujo a27c8e3746 Branch merge 2011-05-01 02:09:37 +02:00
Éric Araujo d6dcf8263a Add docstring to anydbm.open 2011-05-01 02:02:30 +02:00
Éric Araujo 015014ff63 Fix file handle leak 2011-05-01 02:05:58 +02:00
Brian Curtin 20de4586e6 whitespace fix 2011-04-29 16:28:52 -05:00
Brian Curtin 77b75910b7 merge 2011-04-29 16:21:51 -05:00
Senthil Kumaran f3eb7d3454 skip the extractall test on platforms where os.symlink is not available. 2011-04-28 17:00:19 +08:00
Senthil Kumaran 011525ee92 Fix closes issue10761: tarfile.extractall failure when symlinked files are present. 2011-04-28 15:30:31 +08:00
Ezio Melotti bdfa2e69e2 Backport test from #11926. 2011-04-28 07:59:33 +03:00
Ezio Melotti 34b32d62f8 #11763: don't use difflib in TestCase.assertMultiLineEqual if the strings are too long. 2011-04-27 09:45:46 +03:00
Senthil Kumaran 83627ed6d5 issue11236 getpass.getpass to respond ctrl-c or ctrl-z 2011-04-26 21:02:26 +08:00
Ezio Melotti e3685f6b1b #6780: fix starts/endswith error message to mention that tuples are accepted too. 2011-04-26 05:12:51 +03:00
Raymond Hettinger 3f2b18495b Other minor clean-ups. 2011-04-24 12:55:28 -07:00
Raymond Hettinger c646743d02 Remove unused branch in the clear() method. Minor comment edits. 2011-04-24 12:30:39 -07:00
Raymond Hettinger 536999c697 Minor code clean-up. 2011-04-23 20:11:50 -07:00
Raymond Hettinger b36f747464 Remove unused imports 2011-04-23 18:37:37 -07:00
Raymond Hettinger 43a5641c0b Minor code simplification. 2011-04-23 15:51:38 -07:00
Raymond Hettinger 0b795e5b36 Minor code simplification. 2011-04-23 15:41:38 -07:00
Raymond Hettinger 7ce6d9763c Cleanups to remove dependencies and add docstrings. 2011-04-22 18:49:53 -07:00
Raymond Hettinger 3674c8591f Minor text rearrangement. 2011-04-20 13:11:38 -07:00
Jesus Cea 44e81687a2 startswith and endswith don't accept None as slice index. Patch by Torsten Becker. (closes #11828) 2011-04-20 16:39:15 +02:00
Brian Curtin 0d65433568 Fix #8886. Use context managers throughout zipfile tests.
This was fixed in py3k SVN. Consider this a backport.
2011-04-19 21:15:55 -05:00
Raymond Hettinger c98556e72e Issue #11875: Alter the previous fix to work better with subclasses 2011-04-19 16:53:07 -07:00
Raymond Hettinger 7cb5ec0e60 Use a generic class lookup. 2011-04-19 09:52:21 -07:00
Raymond Hettinger e0156c43da Issue 11875: Keep OrderedDict's __reduce__ from temporarily mutating the object. 2011-04-19 09:48:39 -07:00
Nadeem Vawda bafc6a9fca Fix sporadic failure in test_startfile.
Wait for the child process to terminate before ending the test, so that the
regrtest cleanup code doesn't get an error when it tries to delete the
temporary CWD.
2011-04-19 01:35:58 +02:00
Raymond Hettinger efeb8bdaa2 Rework multiset methods to use less memory and to make fewer calls to __hash__. 2011-04-17 20:08:41 -07:00
Éric Araujo b22e17b2d6 Fix double use of f.close().
The other one is in a finally block not seen in the diff, which I added
in 3bf86785cd9c (for #10252).
2011-04-16 00:13:39 +02:00
Éric Araujo 4800d6470c Minor tweaks to a few comments in heapq 2011-04-15 23:34:31 +02:00
Raymond Hettinger 37c0fe56b9 Fix minor subclassing issue with collections.Counter 2011-04-15 13:12:21 -07:00
Ezio Melotti c283a85e12 Issue #5057: fix a bug in the peepholer that led to non-portable pyc files between narrow and wide builds while optimizing BINARY_SUBSCR on non-BMP chars (e.g. u"\U00012345"[0]). 2011-04-15 16:14:04 +03:00
Senthil Kumaran ddaea1c38a Issue #11467: Fix urlparse behavior when handling urls which contains scheme
specific part only digits. Patch by Santoso Wijaya.
2011-04-15 18:07:33 +08:00
Ezio Melotti 1bb18cc39e #11848: replace dead link in random.betavariate comment. 2011-04-15 08:25:16 +03:00
Senthil Kumaran a99b761972 Fix Issue11474 - url2pathname() handling of '/C|/' on Windows 2011-04-14 12:54:35 +08:00
Éric Araujo e4f8d839a7 Fix improper tests in RegisterTestCase 2011-04-14 03:49:19 +02:00
Raymond Hettinger 9b342c6fd4 Issue 3051: make pure python code pass the same tests as the C version. 2011-04-13 11:15:58 -07:00
Ezio Melotti 2b96f0987a #9233: Fix json.loads({}) to return a dict (instead of a list), when _json is not available. 2011-04-13 05:37:29 +03:00
Raymond Hettinger 179816df59 Issue 11718: Teach IDLE's open module dialog to find packages. 2011-04-12 18:54:46 -07:00
R David Murray ea8b6ef15f #10019: Fix regression relative to 2.6: add newlines if indent=0
Patch by Amaury Forgeot d'Arc, updated by Sando Tosi.
2011-04-12 21:00:26 -04:00
Senthil Kumaran 49c440877e Fix Issue11703 - urllib2.get_url does not handle fragment in url properly. 2011-04-13 07:31:45 +08:00
Raymond Hettinger 7c9d34722d Issue 11747: Fix output format for context diffs. 2011-04-12 15:48:25 -07:00
Raymond Hettinger d92232976e Neaten-up the fix to issue 11830 2011-04-12 09:06:01 -07:00
Ezio Melotti 4ded0c0462 Remove unnecessary imports and use assertIs instead of assertTrue. 2011-04-12 16:06:43 +03:00
Ezio Melotti 1b93021214 #9233: skip _json-specific tests when _json is not available. 2011-04-12 15:59:50 +03:00
Raymond Hettinger 9d2ad441b9 Use floor division operator instead of deprecated division operator. 2011-04-11 17:45:01 -07:00
Raymond Hettinger e4579c3380 Issue #11830: Remove unnecessary introspection code in the decimal module.
It was causing a failed import in the Turkish locale where the locale
sensitive str.upper() method caused a name mismatch.
2011-04-11 17:27:42 -07:00
brian.curtin 40b5316118 Fix #5162. Allow child spawning from Windows services (via pywin32). 2011-04-11 18:00:59 -05:00
Ezio Melotti 8b4367ec10 #4877: Fix a segfault in xml.parsers.expat while attempting to parse a closed file. 2011-04-11 03:44:28 +03:00
Antoine Pitrou 7dfc874a48 Issue #8428: Fix a race condition in multiprocessing.Pool when terminating
worker processes: new processes would be spawned while the pool is being
shut down.  Patch by Charles-François Natali.
2011-04-11 00:26:42 +02:00
Ned Deily 04cb72f968 Issue9670: Back out changeset b0d2b696da19; test fails on other platforms
and on OS X with pydebug.
2011-04-09 14:59:30 -07:00
Ned Deily e427f0f432 Issue #9670: Increase the default stack size for secondary threads on
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(Patch by Ronald Oussoren)
2011-04-09 12:29:58 -07:00
Ross Lagerwall fe2f1ad5b5 Issue #11719: Fix message about unexpected test_msilib skip.
Patch by Nadeem Vawda.
2011-04-09 20:39:50 +02:00
Antoine Pitrou c2b0d76bf3 Issue #11766: increase countdown waiting for a pool of processes to start
up.  Hopefully fixes transient buildbot failures.
2011-04-06 22:54:14 +02:00
Senthil Kumaran bb4e470dcd hg pull/merge - Changes to accomodate. 2011-04-06 14:41:42 +08:00
Senthil Kumaran 792eb5dc84 Issue #10762: Guard against invalid/non-supported format string '%f' on Windows. Patch Santoso Wijaya. 2011-04-06 14:27:47 +08:00
Alexander Belopolsky 07019bcaab Issue #11576: Fixed timedelta subtraction glitch on big timedelta values 2011-04-05 22:12:22 -04:00
Ned Deily 5f511826c2 Issue #7108: Fix test_commands to not fail when special attributes ('@'
or '.') appear in 'ls -l' output.
2011-04-05 17:16:09 -07:00
Ezio Melotti 9f1ffb2ae9 #7311: fix HTMLParser to accept non-ASCII attribute values. 2011-04-05 20:40:52 +03:00
Ross Lagerwall 104c3f1020 Issue #10963: Ensure that subprocess.communicate() never raises EPIPE. 2011-04-05 15:24:34 +02:00
Steven Bethard e3c11b44e3 Issue #9347: Fix formatting for tuples in argparse type= error messages. 2011-04-04 01:47:52 +02:00
Guido van Rossum b885a5bbc8 Merge cleanup. 2011-03-29 13:04:24 -07:00
Guido van Rossum 07ef62c47c Merge issue 11662 from 2.6. 2011-03-29 12:53:55 -07:00
Guido van Rossum 079381d236 Merge issue 11662 from 2.5. 2011-03-29 12:51:16 -07:00
guido@google.com b7ef35b582 Merge urllib/urllib2 security fix from 2.6 branch. 2011-03-29 11:14:01 -07:00
guido@google.com 9a9fdfad59 Merge urllib/urllib2 security fix from 2.5 branch. 2011-03-29 10:48:23 -07:00
Benjamin Peterson 77d466079a Correct handling of functions with only kwarg args in getcallargs (closes #11256)
A patch from Daniel Urban.
2011-03-28 17:32:31 -05:00
guido@google.com f1509306d2 Add tests for the urllib[2] vulnerability. Change to raise exceptions. 2011-03-28 13:47:01 -07:00
Martin v. Löwis 7aea63ff65 Add missing file from #11696. 2011-03-27 21:01:03 +02:00
Martin v. Löwis 03f7e235c8 Closes #11696: Fix ID generation in msilib.
Patch by Mark Mc Mahon.
2011-03-27 20:58:52 +02:00
Mark Dickinson d687be09b4 Issue #9696: Fix exception incorrectly raised by xdrlib.Packer.pack_int when trying to pack a negative (in-range) integer. 2011-03-27 16:15:24 +01:00
Steven Bethard bc3b104e46 Issue #9026: Fix order of argparse sub-commands in help messages. (Merged from 3.2.) 2011-03-27 13:57:55 +02:00