Commit Graph

15804 Commits

Author SHA1 Message Date
R. David Murray 661303f27e Issue #5277: Fix quote counting when parsing RFC 2231 encoded parameters. 2010-04-13 20:57:40 +00:00
Mark Dickinson 2c4798b1fd In test_winsound, don't try to import _winreg until after checking that winsound is supported. 2010-04-13 11:37:23 +00:00
Brian Curtin d5c50b32aa Fix #7306. Add skips to test_winsound when no default sound is configured.
These failures occur on a Windows Server 2003 machine I test on.
2010-04-13 02:25:20 +00:00
Brian Curtin bc96f3272d Fix #8364. Update the setquit docstring and change a built-in to builtin. 2010-04-12 23:30:49 +00:00
R. David Murray 1a14d3d169 Issue #7585: use tab between components in unified and context diff headers.
Instead of spaces between the filename and date (or whatever the string
is that follows the filename, if any) use tabs.  This is what the unix
'diff' command does, for example, and difflib was intended to follow
the 'standard' way of doing diffs.  This improves compatibility with
patch tools.  The docs and examples are also changed to recommended that
the date format used be the ISO 8601 format, which is what modern diff
tools emit by default.

Patch by Anatoly Techtonik.
2010-04-12 16:35:19 +00:00
Stefan Krah 9aca91d7d7 Issue #8367: Fix spurious test failure on systems without a sound card. 2010-04-12 15:21:25 +00:00
R. David Murray 27ef93797c Issue #7472: ISO-2022 charsets now consistently use 7bit CTE.
Fixed a typo in the email.encoders module so that messages output using
an ISO-2022 character set will use a content-transfer-encoding of
7bit consistently.  Previously if the input data had any eight bit
characters the output data would get marked as 8bit even though it
was actually 7bit.
2010-04-12 14:26:06 +00:00
Senthil Kumaran d10b65eb68 Adding additional examples of valid urls as per RFC 3986 (for issue8339) 2010-04-12 06:50:24 +00:00
Martin v. Löwis 5a96543b36 Re-enable all tests, to see which ones fail on the buildbots. 2010-04-12 05:22:25 +00:00
Martin v. Löwis 7f7765ce39 Issue #8330: Fix expected output in test_gdb. 2010-04-12 05:18:16 +00:00
Antoine Pitrou fc53153498 Issue #8374: Update the internal alias table in the :mod:`locale` module
to cover recent locale changes and additions.
2010-04-11 22:32:39 +00:00
Raymond Hettinger fdf1b5642b Minor factoring 2010-04-11 20:39:28 +00:00
Stefan Krah a185839862 Fix for issues #3581, #1481 and #7650:
1. The assumptions in check_node() were too restrictive:

     - Hardware addresses with universal_local_bit=1 are valid
       (locally administered).

     - Many of the tested functions (including uuid.getnode())
       may return valid RFC 4122 random node IDs. These are pretty
       much random 48-bit values with the multicast bit set to 1.

2. _unixdll_getnode() calls _uuid_generate_time(), which may be None
   on some platforms. The resulting TypeError is now caught.
2010-04-11 15:15:54 +00:00
Benjamin Peterson a11da59755 add test for class with no operations defined 2010-04-11 01:40:32 +00:00
Antoine Pitrou bba8f2d10a Revert temporary commit in r79937 2010-04-10 23:32:12 +00:00
Antoine Pitrou 16e026cc94 Temporary commit of fix to issue #5380 (in order to watch buildbot response) 2010-04-10 22:43:05 +00:00
Philip Jenvey cdd98fb463 fix PYTHONWARNINGS handling to not modify the original env value and improve
its tests
2010-04-10 20:27:15 +00:00
Jean-Paul Calderone b60ee469cd Refactor a couple inspect module tests to remove duplicate code
The test_classify_oldstyle and test_classify_newstyle methods of
test.test_inspect.TestClassesAndFunctions were previously almost
identical (aside from irrelevant whitespace and one semantic
difference).  They now share a single helper.

Fixes issue #8363.
2010-04-10 19:59:28 +00:00
Philip Jenvey bb66973afb adjust gc_collect for Jython 2010-04-10 19:39:07 +00:00
Raymond Hettinger 4e45512de2 Issue 8361: Remove assert from functools.total_ordering 2010-04-10 16:57:36 +00:00
Benjamin Peterson 2cab8db95e update pydoc-topics 2010-04-10 16:28:34 +00:00
Benjamin Peterson fbac6c1590 bump version to 2.7b1 2010-04-10 16:22:05 +00:00
Nick Coghlan 14459d5b1b Fix typo in comment 2010-04-10 15:01:54 +00:00
Nick Coghlan 13623662ea Try to turn some buildbots green by allowing test_multiprocessing to pass even if it hits the sys.exc_clear code in the threading module, and improve the test coverage by making the ctypes dependencies a bit more granular (two of the cited ctypes objects don't exist on my system) 2010-04-10 14:24:36 +00:00
Antoine Pitrou 343314a11c Revert r79915 (temporary commit to check for buildbots -> the fix was successful) 2010-04-09 22:41:31 +00:00
Antoine Pitrou 9c6cd56e91 Temporarily commit fix to issue #8108, to check for buildbot response 2010-04-09 21:00:36 +00:00
Martin v. Löwis 7bc26b9be6 Issue #8348: Fix test ftp url in test_urllib2net. 2010-04-08 17:40:54 +00:00
Martin v. Löwis e84089e3f1 Issue #8204: Fix test_ttk notebook test by forcing focus. 2010-04-08 17:38:32 +00:00
Martin v. Löwis 1b287c7434 Issue #8344: Fix test_ttk bug on FreeBSD. 2010-04-08 09:47:40 +00:00
Michael Foord 91a2c89288 Switch regrtest to use StringIO instead of cStringIO for test_multiprocessing on Windows. Issue 8333. 2010-04-08 00:04:24 +00:00
Michael Foord f6ff26c486 unittest.result.TestResult does not create its buffers until they're used. It uses StringIO not cStringIO. Issue 8333. 2010-04-07 23:04:22 +00:00
Martin v. Löwis 9a39eccfe1 Issue #8337: Disable the remaining test also for now. 2010-04-07 19:11:32 +00:00
Mark Dickinson 65605f7a5f Use some more interesting test values for (unsigned) long long ctypes tests,
in the hope of getting more information about the test_ctypes failures
on Sparc (see issue #8314).
2010-04-07 10:18:27 +00:00
Philip Jenvey aebbaeb962 #7301: add the environment variable $PYTHONWARNINGS to supplement the -W
command line option
patch from Brian Curtin
2010-04-06 23:24:45 +00:00
Michael Foord c1bf677e28 Fix module directory finding logic for dotted paths in unittest test discovery. 2010-04-06 23:18:16 +00:00
Benjamin Peterson 3a1dfa21c2 remove a optimization that resulted in unexpected behavior #8929 2010-04-06 21:50:00 +00:00
Benjamin Peterson 22c62dd345 use skip decorator 2010-04-06 21:37:06 +00:00
Antoine Pitrou 3b4c989cfd Issue #8193: Fix test_zlib failure with zlib 1.2.4. 2010-04-06 17:21:09 +00:00
Senthil Kumaran b02b311592 Fix Issue8262 - changing RuntimeError wording to "Threads can only be started once" 2010-04-06 03:23:33 +00:00
Antoine Pitrou f9de534c21 Issue #8321: Give access to OpenSSL version numbers from the `ssl` module,
using the new attributes `ssl.OPENSSL_VERSION`, `ssl.OPENSSL_VERSION_INFO`
and `ssl.OPENSSL_VERSION_NUMBER`.
2010-04-05 21:35:07 +00:00
Brian Curtin fce1d31d47 Fix a failing test on an apparently slow Windows buildbot.
On slower Windows machines, waiting 0.1 seconds can sometimes not be
enough for a subprocess to start and be ready to accept signals, causing
the test to fail. One buildbot is also choking on input()/EOFError so
that was changed to not depend on input.
2010-04-05 19:04:23 +00:00
Raymond Hettinger e1d665a90e Classes that override __eq__ also need to define __hash__. 2010-04-05 18:53:43 +00:00
Mark Dickinson 5e0c2748fb Use a more robust infinity check in _Py_HashDouble.
This fixes a test_decimal failure on FreeBSD 8.0.  (modf apparently
doesn't follow C99 Annex F on FreeBSD.)
2010-04-05 18:07:51 +00:00
R. David Murray 0c08009708 Issue 8316: make test_gdb robust in the face of differing terminal
widths.  Patch by Dave Malcolm.
2010-04-05 16:28:49 +00:00
Philip Jenvey 034b0acdd3 fix escape_encode to return the correct consumed size 2010-04-05 02:51:51 +00:00
Benjamin Peterson 76a23c17bc fix dis on new style classes #8310 2010-04-04 23:23:22 +00:00
Raymond Hettinger 06bc0b6d2e Add tests for functools.total_ordering. 2010-04-04 22:24:03 +00:00
Raymond Hettinger bb006cf26c Add tests for cmp_to_key.
Adopt PEP 8 compliant function name.
Factor-out existing uses cmp_to_key.
Update documentation to use internal pointers instead of external resource.
2010-04-04 21:45:01 +00:00
Raymond Hettinger a551f31d48 Add functools.CmpToKey() 2010-04-04 18:34:45 +00:00
Mark Dickinson fdaaa9c9d8 Issue #8300 (__index__ handling in struct.pack): Remove redundant check
and improve test coverage.  Thanks Meador Inge for the patch.
2010-04-04 08:43:04 +00:00
Ezio Melotti a28eb1c429 Use more specific assert* methods in test_struct. 2010-04-04 07:00:02 +00:00
Raymond Hettinger ab8b9cae7e Expand test coverage for deque.count(). 2010-04-03 22:34:15 +00:00
Benjamin Peterson a44f393c93 import bsddb more robustly 2010-04-03 21:50:40 +00:00
Antoine Pitrou 47b1d02d85 Remove useless (?) import from r79706 2010-04-03 21:42:18 +00:00
Mark Dickinson a3a505076e Silence DeprecationWarnings from uses of has_key and <> in plat-mac. 2010-04-03 18:17:54 +00:00
Raymond Hettinger 5f516edd77 Add count() method to collections.deque(). 2010-04-03 18:10:37 +00:00
Mark Dickinson 74c5c2b2a1 Replace backquotes with repr(), to silence a SyntaxWarning. 2010-04-03 16:54:02 +00:00
Mark Dickinson 920fd66ac6 Ensure 'module removed' warning messages contain the word 'module' or 'package'.
This should fix the test_py3kwarn failure on OS X.  test_support.import_module
also requires this.
2010-04-03 16:41:20 +00:00
Benjamin Peterson 0ccc7bbb34 stop CObject deprecation warnings in test___all__ 2010-04-03 16:06:42 +00:00
Benjamin Peterson 674a9eb6e3 remove deprecation warnings silence attempting 2010-04-03 15:58:15 +00:00
Benjamin Peterson 4dbda8593d spelling 2010-04-03 15:45:59 +00:00
Benjamin Peterson 7beeeb5713 silence PyCObject warnings in bsddb 2010-04-03 15:44:56 +00:00
Benjamin Peterson 7daf985feb remove unneeded argument 2010-04-03 15:40:29 +00:00
Benjamin Peterson 73541af85d wrap 2010-04-03 15:38:38 +00:00
Michael Foord 3dd9f40d6d Minor tweak to unittest command line usage message 2010-04-03 15:20:00 +00:00
Michael Foord d43b63fed3 Adding -b command line option to the unittest usage message. 2010-04-03 14:52:18 +00:00
Ezio Melotti 856a3be76a Use more specific assert* methods in test_decimal. 2010-04-03 14:51:00 +00:00
Mark Dickinson 4846a8e828 Issue #8300: Let struct.pack use __index__ to convert and pack non-integers.
Based on a patch by Meador Inge.
2010-04-03 14:05:10 +00:00
Mark Dickinson b05dc00fb7 Fix a couple of issues with the test_structmembersType class in _testcapimodule
- rename to _test_structmembersType to avoid the class being automatically
   called by test_capi

 - allow space for trailing NUL in inplace_member field of all_structmembers

 - use T_STRING_INPLACE instead of T_INPLACE_STRING as keyword argument
   to _test_structmembersType initializer

 - don't attempt to initialize inplace_member field if T_STRING_INPLACE
   argument wasn't supplied.
2010-04-03 10:27:05 +00:00
Raymond Hettinger 34c35b2788 Add subtract() method to collections.Counter() objects. 2010-04-03 10:22:00 +00:00
Raymond Hettinger dd2fedcd1c Factor-out constant expressions 2010-04-03 07:57:09 +00:00
Raymond Hettinger 6b96ecb0ab Improve clear() method. Keeps key/value refcnts >= 1 until final dict.clear() so that decrefs to zero won't trigger arbitrary code . Also runs a bit faster. 2010-04-03 03:14:28 +00:00
Michael Foord 93232660bb Another attempt at a fix for unittest.test.test_result for windows line endings 2010-04-03 02:33:55 +00:00
Michael Foord 9b4ee12e89 Cross platform unittest.TestResult newline handling when buffering stdout / stderr. 2010-04-03 02:21:39 +00:00
Benjamin Peterson 1c7c11ef61 give TypeError when trying to set T_STRING_INPLACE 2010-04-03 01:28:57 +00:00
Michael Foord 931190b4f5 Support dotted module names for test discovery paths in unittest. Issue 7780. 2010-04-03 01:15:21 +00:00
Benjamin Peterson 2b79fdfc69 split out large test function 2010-04-03 01:08:34 +00:00
Brian Curtin e9da81c62b Fix assertRaises usage on reflection functions which should raise
NotImplementedError on Windows XP and below.
2010-04-03 00:59:32 +00:00
Raymond Hettinger 3928276e64 Clear cyclical references in list based OrderedDict. 2010-04-03 00:39:26 +00:00
Benjamin Peterson 4564c08b26 set svn:eol-style on new file 2010-04-02 23:31:40 +00:00
Brian Curtin e5aa886b44 Implement #1220212. Add os.kill support for Windows.
os.kill takes one of two newly added signals, CTRL_C_EVENT and
CTRL_BREAK_EVENT, or any integer value. The events are a special case
which work with subprocess console applications which implement a
special console control handler. Any other value but those two will
cause os.kill to use TerminateProcess, outright killing the process.

This change adds win_console_handler.py, which is a script to implement
SetConsoleCtrlHandler and applicable handler function, using ctypes.

subprocess also gets another attribute which is a necessary flag to
creationflags in Popen in order to send the CTRL events.
2010-04-02 23:26:06 +00:00
Michael Foord a04c7a0f16 Issue #8038: Addition of unittest.TestCase.assertNotRegexpMatches 2010-04-02 22:55:59 +00:00
Michael Foord 25d7976014 unittest tests no longer replace the sys.stdout put in place by regrtest 2010-04-02 22:30:56 +00:00
Mark Dickinson 7c63eee485 Issue #8294: Allow float and Decimal arguments in Fraction constructor. 2010-04-02 22:27:36 +00:00
Michael Foord 58c1e78806 TestResult stores original sys.stdout and tests no longer use sys.__stdout__ (etc) in tests for unittest -b command line option 2010-04-02 22:08:29 +00:00
Ezio Melotti 7999deafc8 Fix test_compiler.py that was using unittest.__file__ to find Lib/ (unittest is now a package). 2010-04-02 21:43:10 +00:00
Michael Foord 5637f04a94 Addition of -b command line option to unittest for buffering stdout and stderr during test runs. 2010-04-02 21:42:47 +00:00
Brian Curtin e33fa887d3 Implement #7347. Add CreateKeyEx, DeleteKeyEx, and update _winreg tests.
*ReflectionKey functions used to not be documented or tested, but they are
now sufficiently documented and tested on platforms where they apply.
Additionally, fixed a bug in QueryReflectionKey which was returning an
incorrect value.

All tests pass from XP through Windows 7, on 32 and 64-bit platforms.
2010-04-02 21:18:14 +00:00
Tarek Ziadé ef253ac84e removed the local copy of xxmodule, and skip only test_build_ext when xxmodule is not found, not the whole unittest 2010-04-02 21:14:04 +00:00
Raymond Hettinger ed171abd93 Issue 8257: Decimal constructor to accept float. 2010-04-02 18:39:24 +00:00
Florent Xicluna f37592fda1 Backport some robotparser test and skip the test if the external resource is not available. 2010-04-02 17:26:42 +00:00
Andrew M. Kuchling d54e699cba #4440: modernize a use of filter(), making it compatible with 3.x 2010-04-02 16:59:16 +00:00
Eric Smith d44b2fc87c Issue 7994: Make object.__format__ with a non-empty format string a PendingDecprecationWarning. Still need to remove uses of this from various tests. 2010-04-02 12:30:56 +00:00
Mark Dickinson f3eeca16cb Issue #7279: Make Decimal('nan') hashable. Decimal('snan') remains unhashable.
Also rewrite the Decimal __hash__ method so that it doesn't rely on
float('inf') being valid: float('inf') could raise an exception on
platforms not using IEEE 754 arithmetic.
2010-04-02 10:35:12 +00:00
Mark Dickinson e096e82e82 Issue #7279: Make comparisons involving a Decimal sNaN signal InvalidOperation. 2010-04-02 10:17:07 +00:00
Mark Dickinson 99d8096c17 Issue #2531: Make float-to-decimal comparisons return correct results.
Float to decimal comparison operations now return a result based on
the numeric values of the operands.  Decimal.__hash__ has also been
fixed so that Decimal and float values that compare equal have equal
hash value.
2010-04-02 08:53:22 +00:00
Florent Xicluna dfd3618422 #7092: silence some py3k warnings 2010-04-02 08:30:21 +00:00
Florent Xicluna a7f242fa2a #7092: Drop the cmp argument. 2010-04-02 08:15:26 +00:00
Florent Xicluna d630c04ab1 #7092: Fix additional "-3" warnings in the idlelib package, and convert to absolute imports. 2010-04-02 07:24:52 +00:00
Florent Xicluna 8d1da0f5c3 #7092: Fix some -3 warnings, and fix Lib/platform.py when the path contains a double-quote. 2010-04-01 18:17:09 +00:00
Antoine Pitrou b5023df3d6 Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked
as a regular test by regrtest.py, and fails.
2010-04-01 17:56:57 +00:00
Martin v. Löwis bf0dfb3d0e Issue #8032: For gdb7, a python-gdb.py file is added to the build,
allowing to use advanced gdb features when debugging Python.
2010-04-01 07:40:51 +00:00
Brian Curtin a01da93d85 Fix a test_pydoc failure on Neal Norwitz's buildbot. 2010-04-01 04:02:00 +00:00
Florent Xicluna 6257a7bbb2 Replace catch_warnings with check_warnings when it makes sense. Use assertRaises context manager to simplify some tests. 2010-03-31 22:01:03 +00:00
Antoine Pitrou a57df2cf1d Issue #8268: Old-style classes (not just instances) now support weak
references.
2010-03-31 21:32:15 +00:00
Florent Xicluna 26cc99da2a Fix test for xml.etree when using a non-ascii path. And use check_warnings instead of catch_warnings. 2010-03-31 21:21:54 +00:00
Barry Warsaw f7f2d6f51e - Issue #8233: When run as a script, py_compile.py optionally takes a single
argument `-` which tells it to read files to compile from stdin.  Each line
  is read on demand and the named file is compiled immediately.  (Original
  patch by Piotr Ożarowski).
2010-03-31 21:07:16 +00:00
Brian Curtin fe4900c0bc Correct what was intended to be a single-tuple to just be a != check.
Thanks to Éric Araujo for noticing that.
2010-03-31 17:36:09 +00:00
Ezio Melotti fcc500ebc4 Silence a py3k warning. 2010-03-31 08:33:50 +00:00
Brian Curtin aeb2e8295d Fix #8225. xml.etree was displaying an incorrect link when viewed in help. 2010-03-31 03:10:21 +00:00
Thomas Heller b102ddadcb Revert rev. 79509; ctypes doesn't build on linux. 2010-03-30 20:57:06 +00:00
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