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
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
Ezio Melotti
eb72991fbb
Revert r79179 and merge r75584 to explain how to implement a queue using collection.deque instead of a list.
2010-03-31 07:26:24 +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
08b56b6084
Removed merge tracking for "svnmerge" for
...
svn+ssh://pythondev@svn.python.org/python/branches/branch_libffi-3_0_10-win
2010-03-30 19:55:34 +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
ec71794cb8
fix ACKS: alphabetic order and UTF-8
2010-03-30 16:42:47 +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
58b6566b0a
Highlight the change of behavior related to r79494. Now VT and FF are linebreaks.
2010-03-30 16:29:03 +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
Raymond Hettinger
b8d688cd7c
Update itertools recipe for consume().
2010-03-28 18:25:01 +00:00
Raymond Hettinger
d282b931a3
Add a note on optimizing the itertools recipes for production.
2010-03-28 18:08:15 +00:00
Raymond Hettinger
5b027f87b5
Update itertools recipes.
2010-03-28 18:02:41 +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
9588d998d5
Add Misc/NEWS entry for r79455.
2010-03-27 11:14:37 +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
Antoine Pitrou
eee91cda80
Issue #8222 : Enable the SSL_MODE_AUTO_RETRY flag on SSL sockets, so that blocking
...
reads and writes are always retried by OpenSSL itself.
(this is a followup to issue #3890 )
2010-03-26 19:27:16 +00:00
Benjamin Peterson
c7024e7fd6
reorder imports
2010-03-26 13:53:32 +00:00
Michael Foord
79d1fa911b
Makefile.pre.in for the unittest/test directory
2010-03-26 13:07:38 +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