Commit Graph

15593 Commits

Author SHA1 Message Date
Thomas Heller 5006ba0fef Merged revisions 79115,79424,79491 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/branch_libffi-3_0_10-win

........
  r79115 | thomas.heller | 2010-03-19 22:14:47 +0100 (Fr, 19 Mrz 2010) | 7 lines

  Work in progress.  2 tests fail on x86/win32 because the stack
  checking code in ffi_call_win32 is not yet implemented.

  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.
........
  r79424 | thomas.heller | 2010-03-25 19:28:02 +0100 (Do, 25 Mrz 2010) | 1 line

  Build _ctypes on Win64.
........
  r79491 | thomas.heller | 2010-03-29 21:30:33 +0200 (Mo, 29 Mrz 2010) | 4 lines

  On Windows, ctypes does no longer check the stack before and after
  calling a foreign function.
  This allows to use the unmodified libffi library.
........
2010-03-30 19:46:23 +00:00
Antoine Pitrou 8f66efe253 Fix small error in r79502 2010-03-30 18:58:22 +00:00
Antoine Pitrou 6032c25063 Issue #8248: Add some tests for the bool type. Patch by Gregory Nofi. 2010-03-30 18:49:45 +00:00
Benjamin Peterson 7e213255ce add inspect.getcallargs, which binds function arguments like a normal call #3135
Patch by George Sakkis
2010-03-30 17:58:13 +00:00
Florent Xicluna 75c6676916 #8263: Now regrtest.py will report a failure if it receives a KeyboardInterrupt (SIGINT). 2010-03-30 16:31:14 +00:00
Florent Xicluna 22b243809e #7643: Unicode codepoints VT (0x0B) and FF (0x0C) are linebreaks according to Unicode Standard Annex #14. 2010-03-30 08:24:06 +00:00
Michael Foord e6410c536c Backport of weakref.WeakSet and tests from Python 3. 2010-03-29 20:04:23 +00:00
Michael Foord a7e08fe3f8 Addition of delta keyword argument to unittest.TestCase.assertAlmostEquals and assertNotAlmostEquals
This allows the comparison of objects by specifying a maximum difference; this includes the comparing of non-numeric objects that don't support rounding.
2010-03-27 19:10:11 +00:00
Michael Foord b35ecf4775 Rename the unittest test_suite function to not clash with a test module name (unittest.test.test_suite is now unambiguous). 2010-03-27 13:42:34 +00:00
Michael Foord ff889396a8 A fix for running unittest tests on platforms without the audioop module (e.g. jython and IronPython) 2010-03-27 12:55:19 +00:00
Mark Dickinson 71b7fac07b Make Fraction to complex comparisons with <=, <, >= or > raise TypeError. 2010-03-27 11:09:29 +00:00
Florent Xicluna 355adc5a45 Ensure that the failed or unexpected tests are sorted before printing. 2010-03-26 19:32:44 +00:00
Benjamin Peterson c7024e7fd6 reorder imports 2010-03-26 13:53:32 +00:00
Michael Foord fa2f1cdcbb Addition of -c command line option to unittest, to handle ctrl-c during a test run more elegantly 2010-03-26 03:18:31 +00:00
Michael Foord ee627883a7 Move a support TestCase out of the main namespace in unittest.test.test_suite 2010-03-26 02:53:56 +00:00
Michael Foord 95ac82bfc6 Remove incorrect docstring in unittest.test 2010-03-26 00:03:38 +00:00
Michael Foord 35b3792ed3 Turn unittest tests into a package 2010-03-25 23:56:33 +00:00
Florent Xicluna fd37dd46e8 Fix test_unittest and test_warnings when running "python -Werror -m test.regrtest" 2010-03-25 20:39:10 +00:00
Florent Xicluna 8aa5a581d3 #8207: Fix test_pep277 on OS X 2010-03-25 20:33:49 +00:00
Florent Xicluna c8a730bf72 Syntax cleanup `== None` -> `is None` 2010-03-25 20:32:07 +00:00
Larry Hastings 402b73fb8d Backported PyCapsule from 3.1, and converted most uses of
CObject to PyCapsule.
2010-03-25 00:54:54 +00:00
Steven Bethard 2ec1f27716 Replace license with simple attribution. 2010-03-24 23:03:24 +00:00
Antoine Pitrou 2c6799ab8c Revert r79384 (the fix failed). 2010-03-24 22:12:15 +00:00
Benjamin Peterson fb224e3034 replace copy right notice with simple attribution 2010-03-24 22:03:09 +00:00
Antoine Pitrou 914bdbb495 Trying to fix #8108. Will watch the buildbot(s). 2010-03-24 21:55:12 +00:00
Florent Xicluna 36b9fbb803 Skip tests which depend on multiprocessing.sharedctypes, if _ctypes is not available. 2010-03-24 19:33:25 +00:00
Florent Xicluna 27e024023c Skip test_ascii_formatd if _ctypes is not available (BSD, ...).
Previous change was incomplete (r79334).
2010-03-24 17:32:58 +00:00
Vinay Sajip b0623d64a8 logging: Added LOG_FTP for SysLogHandler and updated documentation. 2010-03-24 14:31:21 +00:00
Florent Xicluna 3c919cf140 The SIGINT signal may happen earlier, during site.py initialization. 2010-03-23 19:19:16 +00:00
Florent Xicluna 446ff14827 The standard error should be empty when the signal is killed, except on SIGINT. 2010-03-23 15:05:30 +00:00
Florent Xicluna fc4d6d7763 Silence test_subprocess. 2010-03-23 14:36:45 +00:00
Florent Xicluna 875bdf731c Skip test_format_deprecation if _ctypes is not available. Add a filter to the warning check. 2010-03-23 11:07:54 +00:00
Benjamin Peterson 996e88a7d5 Merged revisions 79313,79324 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r79313 | benjamin.peterson | 2010-03-22 17:59:57 -0500 (Mon, 22 Mar 2010) | 1 line

  another case where a symbol is needed
........
  r79324 | benjamin.peterson | 2010-03-22 21:59:47 -0500 (Mon, 22 Mar 2010) | 1 line

  use unicode literals
........
2010-03-23 03:03:55 +00:00
Benjamin Peterson 3bcc35b795 Merged revisions 79309 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r79309 | benjamin.peterson | 2010-03-22 17:50:47 -0500 (Mon, 22 Mar 2010) | 1 line

  pass correct symbol in
........
2010-03-22 22:54:42 +00:00
Florent Xicluna 176cda11df Issue #8205: Remove the "Modules" directory from sys.path when Python is running from the build directory (POSIX only). 2010-03-22 22:52:11 +00:00
Florent Xicluna e1f4c92d23 #7667: Fix doctest failures with non-ASCII paths. 2010-03-22 22:45:50 +00:00
Benjamin Peterson 798e54004f Merged revisions 79077,79137,79304-79305 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r79077 | benjamin.peterson | 2010-03-18 18:05:29 -0500 (Thu, 18 Mar 2010) | 1 line

  port detect_encoding improvements from py3k
........
  r79137 | benjamin.peterson | 2010-03-20 11:12:53 -0500 (Sat, 20 Mar 2010) | 1 line

  add a fixer for setting sys.exitfunc #2356
........
  r79304 | benjamin.peterson | 2010-03-22 17:20:22 -0500 (Mon, 22 Mar 2010) | 1 line

  fix test_parser when it's run in a path with spaces #7666
........
  r79305 | benjamin.peterson | 2010-03-22 17:27:07 -0500 (Mon, 22 Mar 2010) | 1 line

  normalize whitespace
........
2010-03-22 22:40:06 +00:00
Antoine Pitrou 513d9aeadb Issue #7512: shutil.copystat() could raise an OSError when the filesystem
didn't support chflags() (for example ZFS under FreeBSD).  The error is
now silenced.
2010-03-22 19:59:46 +00:00
Florent Xicluna 0805e6eed9 #7668: Fix test_httpservers failure when sys.executable contains non-ASCII bytes. 2010-03-22 17:18:18 +00:00
Florent Xicluna 9e7a4c9738 Issue #7703: ctypes supports both buffer() and memoryview(). The former is deprecated.
Complement of r79288.
2010-03-22 16:07:38 +00:00
R. David Murray c9d1a7845b Issue #7860: platform.uname now reports the correct 'machine' type
when Python is running in WOW64 mode on 64 bit Windows.  Patch by
Brian Curtin.
2010-03-22 15:55:09 +00:00
Vinay Sajip 804899b4ab logging: Added getChild utility method to Logger and added isEnabledFor method to LoggerAdapter. 2010-03-22 15:29:01 +00:00
Jesus Cea 73c22e9df2 Missing testsuite files 2010-03-22 15:18:46 +00:00
Florent Xicluna f08a0176a7 Get rid of buffer() in test_ctypes: backport the 3.x tests. 2010-03-22 15:02:46 +00:00
Antoine Pitrou 52093b8e57 Fix an occasional test_ftplib failure, following r79226. 2010-03-22 14:41:48 +00:00
Jesus Cea 6557aac599 pybsddb 4.8.4 integration. Please, comment in issue #8156 2010-03-22 14:22:26 +00:00
Vinay Sajip 31e928eb3c Issue #8201: logging: Handle config errors when non-ASCII and Unicode logger names exist at the same time. 2010-03-22 13:02:28 +00:00
Victor Stinner c7790ed163 Fix the NEWS about my last commit: an unicode subclass can now override the
__unicode__ method (and not the __str__ method).

Simplify also the testcase.
2010-03-22 12:36:28 +00:00
Vinay Sajip 3017a7bbbf Issue #8200: logging: Handle errors when multiprocessing is not fully loaded when logging occurs. 2010-03-22 12:33:08 +00:00
Victor Stinner 95affc4449 Issue #1583863: An unicode subclass can now override the __str__ method 2010-03-22 12:24:37 +00:00