Commit Graph

15831 Commits

Author SHA1 Message Date
Ronald Oussoren 2f88bfdf96 Issue #8084: ensure that the --user directory
conforms to platforms standars on OSX when
using a python framework.
2010-05-08 10:29:06 +00:00
Ronald Oussoren d875d3c36e Fix for issue #7724: make it possible to build using
the OSX 10.4u SDK on MacOSX 10.6 by honoring the specified
SDK when looking for files.
2010-05-08 08:44:37 +00:00
Senthil Kumaran 18e4dd74e0 Fixing the errors trigerred in test_urllib2net. Related to issue8656. 2010-05-08 05:00:11 +00:00
Senthil Kumaran 6057ba1f97 Fix Issue8656 - urllib2 mangles file://-scheme URLs 2010-05-08 03:11:50 +00:00
Michael Foord e6f5e22123 Issue 8547 - detecting and reporting that modules have been imported from the wrong location under test discovery. 2010-05-07 23:39:38 +00:00
Benjamin Peterson 1a0ce685ab revert r80932; it breaks windows 2010-05-07 20:45:07 +00:00
Benjamin Peterson 5dfad9dc9a Merged revisions 79911,79916-79917,80018,80418,80572-80573,80635-80639,80668,80922 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r79911 | benjamin.peterson | 2010-04-09 15:38:53 -0500 (Fri, 09 Apr 2010) | 1 line

  use absolute import
........
  r79916 | benjamin.peterson | 2010-04-09 16:05:21 -0500 (Fri, 09 Apr 2010) | 1 line

  generalize detection of __future__ imports and attach them to the tree
........
  r79917 | benjamin.peterson | 2010-04-09 16:11:44 -0500 (Fri, 09 Apr 2010) | 1 line

  don't try to 'fix' relative imports when absolute_import is enabled #8858
........
  r80018 | benjamin.peterson | 2010-04-12 16:12:12 -0500 (Mon, 12 Apr 2010) | 4 lines

  prevent diffs from being mangled is multiprocess mode #6409

  Patch by George Boutsioukis.
........
  r80418 | benjamin.peterson | 2010-04-23 16:00:03 -0500 (Fri, 23 Apr 2010) | 1 line

  remove unhelpful description
........
  r80572 | benjamin.peterson | 2010-04-27 20:33:54 -0500 (Tue, 27 Apr 2010) | 1 line

  use unicode literals
........
  r80573 | jeffrey.yasskin | 2010-04-27 23:08:27 -0500 (Tue, 27 Apr 2010) | 6 lines

  Don't transform imports that are already relative.  2to3 turned
    from . import refactor
  into
    from .. import refactor
  which broke the transformation of 2to3 itself.
........
  r80635 | benjamin.peterson | 2010-04-29 16:02:23 -0500 (Thu, 29 Apr 2010) | 1 line

  remove imports
........
  r80636 | benjamin.peterson | 2010-04-29 16:02:41 -0500 (Thu, 29 Apr 2010) | 1 line

  unicode literal
........
  r80637 | benjamin.peterson | 2010-04-29 16:03:42 -0500 (Thu, 29 Apr 2010) | 1 line

  must pass a string to Number
........
  r80638 | benjamin.peterson | 2010-04-29 16:05:34 -0500 (Thu, 29 Apr 2010) | 1 line

  unicode literals
........
  r80639 | benjamin.peterson | 2010-04-29 16:06:09 -0500 (Thu, 29 Apr 2010) | 1 line

  pass string to Number
........
  r80668 | jeffrey.yasskin | 2010-04-30 18:02:47 -0500 (Fri, 30 Apr 2010) | 4 lines

  Make 2to3 run under Python 2.5 so that the benchmark suite at
  http://hg.python.org/benchmarks/ can use it and still run on implementations
  that haven't gotten to 2.6 yet.  Fixes issue 8566.
........
  r80922 | benjamin.peterson | 2010-05-07 11:06:25 -0500 (Fri, 07 May 2010) | 1 line

  prevent xrange transformation from wrapping range calls it produces in list
........
2010-05-07 18:58:23 +00:00
Michael Foord ae4dde0858 Issue 8547 - detecting and reporting that modules have been imported from the wrong location under test discovery. 2010-05-07 18:16:19 +00:00
Antoine Pitrou 3843cd8e86 Issue #8571: Fix an internal error when compressing or decompressing a
chunk larger than 1GB with the zlib module's compressor and decompressor
objects.
2010-05-07 16:50:34 +00:00
Michael Foord 4fedbce55a Adding tests for unittest command line handling of buffer, catchbreak and failfast. 2010-05-07 15:52:05 +00:00
Michael Foord 215d394b82 Adding a test for unittest test discovery with dotted path name. 2010-05-07 15:34:08 +00:00
Senthil Kumaran e41bb0bc2c Testsuite for RFC3986 based parsing scenario. Related Issue1462525. 2010-05-07 04:07:29 +00:00
Giampaolo Rodolà e4499a88c2 adds handle_error(self):raise to test modules using asyncore to provide a clearer error message in case something goes wrong 2010-05-06 20:19:32 +00:00
Giampaolo Rodolà 215b6b392d provides a clearer warning message when cheap inheritance with the underlying socket object is used 2010-05-06 19:56:34 +00:00
Giampaolo Rodolà f7454fa98d Fix asyncore issues 8573 and 8483: _strerror might throw ValueError; asyncore.__getattr__ cheap inheritance caused confusing error messages when accessing undefined class attributes; added an alias for __str__ which now is used as a fallback for __repr__ 2010-05-06 17:57:06 +00:00
Antoine Pitrou 1bbb68d37c `self` doesn't exist here 2010-05-06 14:11:23 +00:00
Brian Curtin 11f8b9db79 Fix #7863. Properly identify Windows 7 and Server 2008 R2.
Removed various unused code and added a way to correctly determine
server vs. workstation via the registry.
2010-05-06 02:54:44 +00:00
Mark Dickinson 481ab89b75 Issue #1533: test_range in test_builtin: fix test comment and add test
for rejection of small floats.  Thanks Alexander Belopolsky.
2010-05-05 22:42:51 +00:00
Tarek Ziadé 31a673da52 removed non needed lines 2010-05-05 22:41:25 +00:00
Tarek Ziadé 38f81223ae Fixed #4265: shutil.copyfile() was leaking file descriptors when disk fills 2010-05-05 22:15:31 +00:00
Ronald Oussoren 9545a23c7f In a number of places code still revers
to "sys.platform == 'mac'" and that is
dead code because it refers to a platform
that is no longer supported (and hasn't been
supported for several releases).

Fixes issue #7908 for the trunk.
2010-05-05 19:09:31 +00:00
Antoine Pitrou a8157183b8 Issue #8600: fix test_gdb failures when gdb issues some spurious warnings. 2010-05-05 18:29:02 +00:00
R. David Murray 7d93221a5c Issue #7472: remove unused code from email.encoders.encode_7or8bit.
Yukihiro Nakadaira noticed a typo in encode_7or8bit that was trying
to special case iso-2022 codecs.  It turns out that the code in
question is never used, because whereas it was designed to trigger
if the payload encoding was eight bit but its output encoding was
7 bit, in practice the payload is always converted to the 7bit
encoding before encode_7or8bit is called.  Patch by Shawat Anand.
2010-05-05 17:31:03 +00:00
Barry Warsaw 43ad706ef4 Bug 7755: audiotest.au is arguably copyrighted material, but definitely makes
Debian unhappy.  The actual contents of the audio clip are unimportant, so
replace it with something that we know is okay.  Guido likes woodpeckers.
2010-05-05 16:15:09 +00:00
Ronald Oussoren 91165c0b42 Force exit using os._exit instead of sys.exit,
this makes sure that the child does not continue
testing.
2010-05-05 15:32:39 +00:00
Ronald Oussoren 3320696371 The C function used by uuid.uuid4 is broken on
OSX 10.6 in that after os.fork() the parent and
child generate the same sequence of UUIDs.

This patch falls back to the the Python implementation
on OSX 10.6 or later.

Fixes issue #8621.
2010-05-05 14:48:37 +00:00
Victor Stinner 926fd4ee32 Issue #8313: traceback.format_exception_only() encodes unicode message to
ASCII with backslashreplace error handler if str(value) failed
2010-05-05 12:40:49 +00:00
Mark Dickinson 3b0b4ff19e Fix test_gzip failure on OS X. The failure was a result of trying to fflush
a file that wasn't open for writing.  Patch by Antoine Pitrou.
2010-05-04 18:45:27 +00:00
Thomas Heller 06a7e2069a On Windows, ctypes does no longer check the stack before and after
calling a foreign function.  This allows to use the unmodified libffi
library.

Remove most files from _ctypes/libffi_msvc, only two include files
stay (updated from _ctypes/libffi/...).  Other files are used in the
cross-platform _ctypes/libffi directory.
2010-05-04 18:44:42 +00:00
Mark Dickinson a8d2668818 Issue #1533: fix inconsistency in range function argument processing:
any non-float non-integer argument is now converted to an integer (if
possible) using its __int__ method.  Previously, only small arguments
were treated this way; larger arguments (those whose __int__ was
outside the range of a C long) would produce a TypeError.

Patch by Alexander Belopolsky (with minor modifications).
2010-05-04 16:18:25 +00:00
Mark Dickinson 4f96f5ffc6 Issue #8567: Fix incorrect precedence of signals in Decimal module.
When a Decimal operation raises multiple signals and more than one of
those signals is trapped, the specification determines the order in
which the signals should be handled.  In many cases this order wasn't
being followed, leading to the wrong Python exception being raised.
This commit fixes those cases, and adds extra tests.  The tests are
only enabled when EXTENDEDERRORTESTS is True, since they involve
rerunning each Decimal testcase several times.
2010-05-04 14:25:50 +00:00
Victor Stinner 7120219918 _pyio: Fix TextIOWrapper constructor: os has no device_encoding() function
_io module doesn't call this function which was introduced in Python3.
2010-05-04 11:35:36 +00:00
Alexandre Vassalotti 268e4872d3 Issue #8404: Fix set operations on dictionary views. 2010-05-04 03:21:51 +00:00
Antoine Pitrou f7fd8e4c94 Issue #7865: The close() method of :mod:`io` objects should not swallow
exceptions raised by the implicit flush().  Also ensure that calling
close() several times is supported.  Patch by Pascal Chambon.
2010-05-03 16:25:33 +00:00
Vinay Sajip 27a1370ae0 Issue #8576: logging updated to remove usage of find_unused_port(). 2010-05-03 15:11:53 +00:00
Michael Foord f9ffccea56 Fix unittest tests to not abuse traceback.format_exception 2010-05-02 20:39:42 +00:00
Ronald Oussoren b0153cf7ac Small update to r80698 to ensure that webbrowser.open
uses the default browser.
2010-05-02 09:55:57 +00:00
Ronald Oussoren 4ef1c7e7ef For for issue #7192: with this patch webbrowser.get("firefox")
works on OSX
2010-05-02 09:48:21 +00:00
Antoine Pitrou 8651810df9 Remove duplicate test 2010-05-01 20:26:58 +00:00
Mark Dickinson 16cd2bea1d Fix incorrect use of a list as the target of an 'except' clause in test_decimal.py. 2010-05-01 11:46:20 +00:00
Senthil Kumaran 1b7f9e53b3 Fix issue8582: urllib.urlretrieve fails with ValueError: Invalid format string 2010-05-01 08:01:56 +00:00
Antoine Pitrou 54f9f83e5c Issue #8576: Remove use of find_unused_port() in test_smtplib and
test_multiprocessing.  Patch by Paul Moore.
2010-04-30 23:08:48 +00:00
Tarek Ziadé a5cd18275e Fixed #8577. distutils.sysconfig.get_python_inc() now differenciates buildir and srcdir 2010-04-30 12:15:12 +00:00
Andrew M. Kuchling ba88b7f23b Always add space after RFC; reword paragraph 2010-04-30 00:49:09 +00:00
Lars Gustäbel 5c4c4619b0 Issue #8464: tarfile.open(name, mode="w|") no longer creates
files with execute permissions set.
2010-04-29 15:23:38 +00:00
Antoine Pitrou 3945c867d6 Fix style issues in test_ssl 2010-04-28 21:11:01 +00:00
Senthil Kumaran ed9204346e Fixed Issue6312 - httplib fails with HEAD requests to pages with "transfer-encoding: chunked" 2010-04-28 17:20:43 +00:00
Nick Coghlan dfb45dfd04 Issue 7490: make IGNORE_EXCEPTION_DETAIL also ignore details of the module containing the exception under test (original patch by Lennart Regebro) 2010-04-28 14:29:06 +00:00
Victor Stinner 6a10281d33 Issue #7449, last part (11): fix many tests if thread support is disabled
* Use try/except ImportError or test_support.import_module() to import thread
   and threading modules
 * Add @unittest.skipUnless(threading, ...) to testcases using threads
2010-04-27 23:55:59 +00:00
Victor Stinner c73a05f775 Issue #7449, part 10: test_cmd imports trace module using test_support.import_module()
Use test_support.import_module() instead of import to raise a SkipTest
exception if the import fail. Import trace fails if the threading module is
missing.

See also part 3: test_doctest: import trace module in test_coverage().
2010-04-27 23:51:16 +00:00