Georg Brandl
12cad204a0
Add missing import.
2010-02-06 23:58:25 +00:00
Georg Brandl
cd4a21bb8e
Fix more unbound locals in code paths that do not seem to be used.
2010-02-06 23:34:10 +00:00
Georg Brandl
bd564c3c21
Fix import/access for some identifiers. _TestSharedCTypes does not seem to be executed?
2010-02-06 23:33:33 +00:00
Georg Brandl
c7ca56d213
We heard you like test failures so we put unbound locals in your test so that you can fail while you fail.
2010-02-06 23:23:45 +00:00
Georg Brandl
d10d8ee2a1
Fix various missing import/unbound name errors.
2010-02-06 23:18:00 +00:00
Georg Brandl
1a0ffe168a
Remove duplicate test method.
2010-02-06 23:12:19 +00:00
Georg Brandl
d1fa76e742
Add missing import.
2010-02-06 23:12:12 +00:00
Mark Dickinson
28d4f9e668
testCopysign was defined twice in test_math; combine the definitions
2010-02-06 23:11:25 +00:00
Georg Brandl
df8a303dff
Fix a few UnboundLocalErrors in test_long.
2010-02-06 23:08:00 +00:00
Georg Brandl
8fd107f8ea
Add missing imports.
2010-02-06 23:06:24 +00:00
Georg Brandl
7224350656
Add a missing import.
2010-02-06 23:02:29 +00:00
Benjamin Peterson
239f138aea
make waiting for the server to start robust
2010-02-06 22:08:15 +00:00
Georg Brandl
26a1f72637
Remove unused imports from test_logging.
2010-02-06 21:54:40 +00:00
Vinay Sajip
7f22443d94
Issue #7857 : Gave server thread more time to get ready, and re-enabled a skipped test.
2010-02-06 20:28:36 +00:00
Benjamin Peterson
42d5947ef5
check type_getattro for correctness in a descriptor corner case
2010-02-06 20:14:10 +00:00
Vinay Sajip
5749d88243
Issue #7857 : Tentatively re-enabling one test to see effect on buildbots.
2010-02-06 20:00:43 +00:00
R. David Murray
ce6e4b0930
issue #7728 : test_timeout was using a hardcoded port, which was
...
causing buildbot failures. Changed to use test_support.bind_port.
Patch by Florent Xicluna.
2010-02-06 04:27:21 +00:00
Michael Foord
0877060f86
unittest.TestLoader creates a TestSuite before calling load_tests. Issue 7799.
2010-02-06 00:22:26 +00:00
Vinay Sajip
2373926964
test_logging: minor tweaks to timeouts, listening tests marked as skipped.
2010-02-05 23:43:11 +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
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
Ezio Melotti
dde5b94875
#7092 : Silence more py3k warnings. Patch by Florent Xicluna.
2010-02-03 05:37:26 +00:00
Tarek Ziadé
e81b0289b6
sysconfig.get_scheme_names now returns a sorted tuple
2010-02-02 22:54:28 +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
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
Ezio Melotti
ef4909643d
#7092 : silence more -3 and -Wd warnings
2010-01-31 11:46:54 +00:00
Ezio Melotti
a2d4653740
#7092 : silence py3k warnings for deprecated modules
2010-01-30 07:22:54 +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
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
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
Benjamin Peterson
a43f34cc2a
fix an UnboundLocalError when the release file is empty #7773
2010-01-25 03:31:13 +00:00
Ezio Melotti
469a05fe46
remove archaic functions from test_support
2010-01-24 20:48:35 +00:00