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
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
Tarek Ziadé
51f2f16ee3
removed documentation on code that was reverted and pushed into distutils2
2010-04-02 21:34:19 +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
Mark Dickinson
a1ffe65e9b
Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile.
2010-04-02 20:34:26 +00:00
Mark Dickinson
651416d946
Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers.
2010-04-02 20:22:21 +00:00
Raymond Hettinger
ed171abd93
Issue 8257: Decimal constructor to accept float.
2010-04-02 18:39:24 +00:00
Andrew M. Kuchling
dc36d7cf85
#6647 : add note to two examples
2010-04-02 17:54:26 +00:00
Andrew M. Kuchling
d886290464
#6647 : document that catch_warnings is not thread-safe
2010-04-02 17:48:23 +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
Larry Hastings
3b958e3b57
Issue #8235 : _socket: Add the constant ``SO_SETFIB``. SO_SETFIB is
...
a socket option available on FreeBSD 7.1 and newer.
2010-04-02 11:18:17 +00:00
Larry Hastings
5ac006dfd3
Capsule-related changes:
...
* PyCObject_AsVoidPtr() can now open capsules. This addresses
most of the remaining backwards-compatibility concerns about
the conversion of Python 2.7 from CObjects to capsules.
* CObjects were marked Pending Deprecation.
* Documentation about this pending deprecation was added to
cobject.h.
* The capsule source files were added to the legacy PC build
processes.
2010-04-02 11:01:35 +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
Georg Brandl
ea2d389474
#8012 : clarification in generator glossary entry.
2010-04-02 09:11:49 +00:00
Georg Brandl
677fdec8fc
Document PyImport_ExecCodeModuleEx().
2010-04-02 09:07:42 +00:00
Georg Brandl
d3bab6aba9
Remove col-spanning cells in logging docs.
2010-04-02 09:03:18 +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
Georg Brandl
6eba779235
Fix typo in unicode character name.
2010-04-02 08:51:31 +00:00
Georg Brandl
49b9192b12
#2768 : add a note on how to get a file descriptor.
2010-04-02 08:39:09 +00:00
Georg Brandl
304b10ef22
Add 2.6.5.
2010-04-02 08:34:41 +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
Raymond Hettinger
f28dd0d1bf
Cleanup itertools recipes
2010-04-02 06:23:12 +00:00
Raymond Hettinger
4bfd3bda2e
Add and update itertools recipes.
2010-04-02 02:44:31 +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
Antoine Pitrou
76c8649038
Issue #8276 : PyEval_CallObject() is now only available in macro form. The
...
function declaration, which was kept for backwards compatibility reasons,
is now removed (the macro was introduced in 1997!).
2010-04-01 16:42:11 +00:00
Raymond Hettinger
f54c268326
Document link to Sorting HowTo
2010-04-01 07:54:16 +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
R. David Murray
6c9fc4cf2b
A couple small grammar fixes in test.rst, and rewrite the
...
check_warnings docs to be clearer.
2010-04-01 01:28:39 +00:00
Ezio Melotti
4fcf7d445c
Add -Wd and -3 to the flags used to run the tests on Windows.
2010-03-31 22:43:31 +00:00
Ezio Melotti
90fd01b787
Add -Wd and -3 to the flags used to run the tests.
2010-03-31 22:18:09 +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
Florent Xicluna
ad59833649
Fix typo
2010-03-31 21:40:32 +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