Vinay Sajip
2373926964
test_logging: minor tweaks to timeouts, listening tests marked as skipped.
2010-02-05 23:43:11 +00:00
Michael Foord
757cc4d15f
Correction to docstring correction.
2010-02-05 23:22:37 +00:00
Michael Foord
d0edec38ce
Improving docstrings in unittest.TestCase
2010-02-05 22:55:09 +00:00
Antoine Pitrou
bb445a1f22
Issue #5677 : Explicitly forbid write operations on read-only file objects,
...
and read operations on write-only file objects. On Windows, the system C
library would return a bogus result; on Solaris, it was possible to crash
the interpreter. Patch by Stefan Krah.
2010-02-05 17:05:54 +00:00
Vinay Sajip
007a618a38
Issue #7857 : test_logging: listener tests disabled for now.
2010-02-05 15:40:20 +00:00
Vinay Sajip
3dd734fe03
Issue #7857 : test_logging: listener test now uses find_unused_port().
2010-02-05 14:52:05 +00:00
Benjamin Peterson
565d78586b
normalize exceptions passed to the __exit__ method #7853
...
In Python 2.x, exceptions in finally blocks are not normalized. Since with
statements are implemented using finally blocks, ceval.c had to be tweaked to
distinguish between with finally blocks and normal ones.
A test for the finalization of generators containing with statements was also
added.
2010-02-05 02:12:14 +00:00
Benjamin Peterson
4a7ff1d80a
add a test for #7853 ; the exception must be normalized for with
2010-02-05 01:53:27 +00:00
Vinay Sajip
f7610b23de
Added unit test for cfg:// resolution.
2010-02-04 21:40:56 +00:00
Vinay Sajip
98ce620068
Removed spurious print statement.
2010-02-04 20:18:28 +00:00
Vinay Sajip
28c382f73a
Logging: Implemented PEP 391.
2010-02-04 18:48:53 +00:00
Brett Cannon
dc84f8fbb4
Fix a typo in a docstring introduced in r77956.
2010-02-03 22:13:44 +00:00
Brett Cannon
18e4db5ebe
Update a docstring to suggest using importlib.import_module instead of calling __import__ directly.
2010-02-03 22:11:54 +00:00
Mark Dickinson
c68e9f0d20
Fix test_inspect.py data to match recent change to inspect_fodder.py (r77942).
2010-02-03 16:50:14 +00:00
Tarek Ziadé
b8c7b017e2
leaving global attributes for backward compat
2010-02-03 15:38:12 +00:00
Ezio Melotti
dde5b94875
#7092 : Silence more py3k warnings. Patch by Florent Xicluna.
2010-02-03 05:37:26 +00:00
Tarek Ziadé
bece7f2d36
fixed a typo on distutils.sysconfig. thanks arfever
2010-02-02 22:55:00 +00:00
Tarek Ziadé
e81b0289b6
sysconfig.get_scheme_names now returns a sorted tuple
2010-02-02 22:54:28 +00:00
Tarek Ziadé
cc11817808
module reorganization + missing doctests
2010-02-02 22:50:23 +00:00
Ezio Melotti
1f517e1d53
#7092 : Silence py3k warnings in test_exceptions and test_pep352. Patch by Florent Xicluna.
2010-02-02 17:34:37 +00:00
Ezio Melotti
8d3f130d41
Fix idioms and a couple of py3k warnings. Patch by Florent Xicluna.
2010-02-02 15:57:45 +00:00
Ezio Melotti
0ac4d4c82d
Silence a couple of -3 warnings
2010-02-02 15:12:42 +00:00
Ezio Melotti
5d62cfe070
#7092 : silence py3k warnings for bsddb. Patch by Florent Xicluna.
2010-02-02 08:37:35 +00:00
Martin v. Löwis
1595f9fe9b
Merged revisions 77855-77856,77870 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r77855 | benjamin.peterson | 2010-01-30 17:32:05 +0100 (Sa, 30 Jan 2010) | 1 line
don't return node if it is not changed
........
r77856 | benjamin.peterson | 2010-01-30 17:35:29 +0100 (Sa, 30 Jan 2010) | 1 line
return None to indicate no change
........
r77870 | benjamin.peterson | 2010-01-31 02:21:26 +0100 (So, 31 Jan 2010) | 1 line
never return the original node given to transform()
........
2010-02-01 01:15:39 +00:00
Victor Stinner
b4b0a2935d
Issue #7819 : Check sys.call_tracing() arguments types.
...
py3k was already patched by issue #3661 .
2010-01-31 22:32:15 +00:00
Antoine Pitrou
f3fa074703
- Issue #6939 : Fix file I/O objects in the `io` module to keep the original
...
file position when calling `truncate()`. It would previously change the
file position to the given argument, which goes against the tradition of
ftruncate() and other truncation APIs. Patch by Pascal Chambon.
2010-01-31 22:26:04 +00:00
Benjamin Peterson
7aedb3b30e
fix windows buildbot
2010-01-31 18:02:35 +00:00
Matthias Klose
48a3c4e2e3
- Fix typo in os.execvp docstring.
2010-01-31 16:46:26 +00:00
Ezio Melotti
ef4909643d
#7092 : silence more -3 and -Wd warnings
2010-01-31 11:46:54 +00:00
Martin v. Löwis
a8e34b707c
Merged revisions 77419,77435 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r77419 | benjamin.peterson | 2010-01-10 21:39:48 +0100 (So, 10 Jan 2010) | 1 line
enclose path in quotes to handle paths with spaces correctly #7666
........
r77435 | alexandre.vassalotti | 2010-01-12 01:36:54 +0100 (Di, 12 Jan 2010) | 2 lines
Issue #1967 : Add fixer for dictionary views.
........
2010-01-30 10:56:23 +00:00
Ezio Melotti
a2d4653740
#7092 : silence py3k warnings for deprecated modules
2010-01-30 07:22:54 +00:00
R. David Murray
05b4171624
Fix typo in assertSequenceEqual docstring.
2010-01-29 19:35:39 +00:00
Mark Dickinson
36ecd676ea
Issue #7788 : Fix a crash produced by deleting a list slice with huge
...
step value. Patch by Marcin Bachry.
2010-01-29 17:11:39 +00:00
R. David Murray
b5d7400e8a
Change error report when the object passed to suite.addTest is not
...
callable to include the repr of the invalid object.
2010-01-28 21:16:33 +00:00
Benjamin Peterson
11fab6c07d
avoid a py3k warning from __hash__
2010-01-28 02:18:25 +00:00
Ezio Melotti
4611b05bd8
avoid to use zlib when the compress type is not ZIP_DEFLATED
2010-01-28 01:41:30 +00:00
Antoine Pitrou
94c33ebfa8
Issue #7610 : Reworked implementation of the internal
...
:class:`zipfile.ZipExtFile` class used to represent files stored inside
an archive. The new implementation is significantly faster and can
be wrapped in a :class:`io.BufferedReader` object for more speedups.
It also solves an issue where interleaved calls to `read()` and
`readline()` give wrong results. Patch by Nir Aides.
2010-01-27 20:59:50 +00:00
Jesse Noller
654ade3e6a
Issue #6963 : Added maxtasksperchild argument to multiprocessing.Pool
2010-01-27 03:05:57 +00:00
Benjamin Peterson
2deb5c758a
raise a clear TypeError when trying to register a non-class
2010-01-27 02:16:42 +00:00
Benjamin Peterson
17527bedad
for UserDict to be compatible with abcs, it must subclass object
2010-01-27 02:15:28 +00:00
Eric Smith
74c2577497
Added named (but not numbered) attributes to sys.getwindowsversion() test.
2010-01-27 02:06:25 +00:00
Eric Smith
59529e1ef6
Switch to test_support.get_attribute.
2010-01-27 01:21:15 +00:00
Eric Smith
514e77e0ae
Removed unneeded test.
2010-01-27 00:58:43 +00:00
Eric Smith
ee931b7253
Issue #7766 : Change sys.getwindowsversion() return value to a named tuple and add the additional members returned in an OSVERSIONINFOEX structure. The new members are service_pack_major, service_pack_minor, suite_mask, and product_type.
2010-01-27 00:28:29 +00:00
Tarek Ziadé
92e68af56a
added local get_platform/set_platform APIs in distutils.sysconfig
2010-01-26 22:46:15 +00:00
Tarek Ziadé
0276c7ad0b
reintroduced the names in Distutils for APIs that were relocated
2010-01-26 21:21:54 +00:00
Tarek Ziadé
b28e5d7e41
fixed bdist_msi imports and added a test module for distutils.command.bdist_msi
2010-01-26 17:20:37 +00:00
Ezio Melotti
ffd849618a
#7092 : fix DeprecationWarnings for json when the tests are run with -3 -Wd.
2010-01-26 15:57:21 +00:00
Tarek Ziadé
ef97caf111
switched the call order so this call works without suffering from issue #7774
2010-01-25 23:19:56 +00:00
Benjamin Peterson
28e369a8f8
compare types with is not ==
2010-01-25 03:58:21 +00:00