Commit Graph

44438 Commits

Author SHA1 Message Date
Ezio Melotti 0cee3794c7 Add a versionadded to Counter.subtract() doc. 2010-04-04 06:41:27 +00:00
Raymond Hettinger 20ae90d887 Issue 5479: Add functools.total_ordering class decorator. 2010-04-04 01:24:59 +00:00
Benjamin Peterson 88623d76b4 use our own locale independent ctype macros
requires building pyctype.o into pgen
2010-04-03 23:03:35 +00:00
Benjamin Peterson 4ceeeb09d8 ensure that the locale does not affect the tokenization of identifiers 2010-04-03 22:48:51 +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
Antoine Pitrou 945d4ccdd9 Fix wording / typography, and a slightly misleading statement
(memoryviews don't support complex structures right now)
2010-04-03 21:22:38 +00:00
Martin v. Löwis 60fccd2f79 Don't install python-gdb.py as an executable. 2010-04-03 18:54:07 +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
Raymond Hettinger 30583e3f38 Silence a compiler warning. 2010-04-03 17:10:05 +00:00
Michael Foord ba097ec1be Documenting new features in unittest 2010-04-03 17:03:11 +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
Mark Dickinson 8a95071fc1 Add Misc/NEWS entry for r79609. 2010-04-03 15:47:46 +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
Brian Curtin ae509520de Add missing return statement in an error condition. 2010-04-03 13:58:39 +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
Victor Stinner f70c581056 Issue #8227: Fix C API documentation, argument parsing
* 'z', 'z#', 'z*' does also accept Unicode
 * unify types name: replace "string or Unicode objet" by "string or Unicode"
2010-04-03 08:40:16 +00:00
Tarek Ziadé 0000295fe3 Issue #1222585: Added LDCXXSHARED for C++ support 2010-04-03 08:37:59 +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
Benjamin Peterson bea424af98 more _PyString_Resize error checking 2010-04-03 00:57:33 +00:00
Raymond Hettinger 3928276e64 Clear cyclical references in list based OrderedDict. 2010-04-03 00:39:26 +00:00
Benjamin Peterson 6caf7ff505 always check _PyString_Resize for error
also normalize how this error is checked
2010-04-02 23:59:41 +00:00
Benjamin Peterson 4564c08b26 set svn:eol-style on new file 2010-04-02 23:31:40 +00:00
Brian Curtin 85108e64a7 Add note about #1220212 (os.kill on Windows) 2010-04-02 23:31:28 +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
Brian Curtin 19479fa437 Add a line about #7347 to Misc\News 2010-04-02 21:51:37 +00:00