Brett Cannon
ddf7a4214e
Make sure warnings are not suppressed when testing for the raised
...
DeprecationWarning.
2008-05-10 03:16:38 +00:00
Brett Cannon
d5a0985265
The Canvas module has been deprecated for removal in 3.0.
2008-05-10 03:14:32 +00:00
Brett Cannon
756bc0b722
Add a test for the deprecation of the compiler package.
2008-05-10 03:09:35 +00:00
Benjamin Peterson
5f9050a1c6
Add the examples in the json module docstring as a doctest
2008-05-10 03:08:17 +00:00
Brett Cannon
6192df10b6
Deprecate the compiler package for removal in 3.0.
2008-05-10 02:58:26 +00:00
Brett Cannon
af87804831
Also ignore package deprecations.
2008-05-10 02:57:03 +00:00
Brett Cannon
edb628f241
Suppress deprecations for packages as well when using
...
test.test_support.import_module().
2008-05-10 02:54:52 +00:00
Brett Cannon
768d44f54d
Deprecate the bsddb185 module for removal in 3.0.
2008-05-10 02:47:54 +00:00
Brett Cannon
4c1f881f13
Deprecate Bastion and rexec for 3.0.
2008-05-10 02:27:04 +00:00
Brett Cannon
9ac3974de8
Deprecate the pure module for 3.0.
2008-05-09 22:51:58 +00:00
Alexandre Vassalotti
1aed624f7c
Backport fast alternate io.BytesIO implementation.
...
Merged r62778, r62779, r62802, r62806, r62807, r62808, r62809, r62844,
r62846, r62952, r62956.
2008-05-09 21:49:43 +00:00
Mark Dickinson
f8476c1573
Issue #2487 . math.ldexp(x, n) raised OverflowError when n was large and
...
negative; fix to return an (appropriately signed) zero instead.
2008-05-09 17:54:23 +00:00
Brett Cannon
3c75914434
Deprecate test.testall for removal in 3.0.
2008-05-09 05:25:37 +00:00
Brett Cannon
d7265d6483
Deprecate the new module for removal in 3.0.
2008-05-09 05:18:40 +00:00
Benjamin Peterson
0893a0a961
Add Py3k warnings to os.path.walk
2008-05-09 00:27:01 +00:00
Benjamin Peterson
9ec4aa01f9
Replace instances of os.path.walk with os.walk
2008-05-08 22:09:54 +00:00
Brett Cannon
e3b1940eb9
Deprecate the user module for removal in 3.0.
2008-05-08 20:36:09 +00:00
Brett Cannon
be1501b976
Fix sys.flags to properly expose bytes_warning.
...
Closes issue #2790 .
2008-05-08 20:23:06 +00:00
Brett Cannon
5d023c3afa
Fix a bug introduced by the addition of the 'record' argument to
...
test.test_support.catch_warning() where showwarning() was not being set
properly.
2008-05-08 20:20:24 +00:00
Brett Cannon
bfb997d6a5
Make test.test_support.catch_warning() take an argument specifying if any
...
triggered warnings should be captured. This allows the context manager to be
used to just prevent the internal state of the 'warnings' framework and thus
allow triggered warnings to be displayed.
2008-05-08 19:50:51 +00:00
Brett Cannon
9d44182427
The mutex module has been deprecated for removal in 3.0.
2008-05-08 19:26:08 +00:00
Brett Cannon
80bb9d92e3
Deprecate the imputil module for removal in 3.0.
2008-05-08 18:15:14 +00:00
Christian Heimes
c2ca6db143
Disabled some unit tests for the upcoming release. See #2777
2008-05-06 23:42:58 +00:00
Brett Cannon
e5d2cbaeaf
Deprecate the audiodev module for 3.0.
2008-05-06 23:23:34 +00:00
Brett Cannon
79618239d1
When testing a module's __all__, we really don't care if it is deprecated.
2008-05-06 23:22:02 +00:00
Christian Heimes
af748c3ab8
Implemented PEP 370
2008-05-06 22:41:46 +00:00
Benjamin Peterson
d295032910
Fix logic error in Python/_warnings.c and add a test to verify
2008-05-06 22:18:11 +00:00
Brett Cannon
e3dcb01bfc
Fix a bug in the handling of the stacklevel argument in warnings.warn() where
...
the stack was being unwound by two levels instead of one each time.
2008-05-06 04:37:31 +00:00
Gregory P. Smith
24237ea8a1
Fix a bug introduced in r62627. see issue2760 and issue2632.
...
An assertion in readline() would fail as data was already in the
internal buffer even though the socket was in unbuffered read mode.
That case is now handled. More importantly, read() has been fixed to
not over-recv() and leave newly recv()d data in the _fileobject buffer.
The max() vs min() issue in read() is now gone. Neither was correct.
On bounded reads, always ask recv() for the exact amount of data we
still need.
Candidate for backporting to release25-maint along with r62627.
2008-05-05 21:53:45 +00:00
Brett Cannon
4b964f9c90
Add the 'json' package. Code taken from simplejson 1.9 and contributed by Bob
...
Ippolito.
Closes issue #2750 .
2008-05-05 20:21:38 +00:00
Martin v. Löwis
5f2e0e5ccb
Revert bogus checkin in r62724 to that file.
2008-05-05 17:54:01 +00:00
Martin v. Löwis
c3ad68c88a
Fix Unicode filename test.
2008-05-05 17:47:06 +00:00
Martin v. Löwis
471617d6d3
Issue #1734346 : Support Unicode file names for zipfiles.
2008-05-05 17:16:58 +00:00
Brett Cannon
8a232cc385
Add a DeprecationWarning for when warnings.showwarning() is set to a function
...
that lacks support for the new 'line' argument.
2008-05-05 05:32:07 +00:00
Benjamin Peterson
979395b7a8
Moved testing of builtin types out of test_builtin and into type specific modules
2008-05-03 21:35:18 +00:00
Amaury Forgeot d'Arc
7684f85297
In test_io, StatefulIncrementalDecoderTest was not part of the test suite.
...
And of course, the test failed:
a bytearray was used without reason in io.TextIOWrapper.tell().
The difference is that iterating over bytes (i.e. str in python2.6) returns 1-char bytes,
whereas bytearrays yield integers.
This code should still work with python3.0
2008-05-03 12:21:13 +00:00
Brett Cannon
64a4bbeb25
Fix the C implementation of 'warnings' to infer the filename of the module that
...
raised an exception properly when __file__ is not set, __name__ == '__main__',
and sys.argv[0] is a false value.
Closes issue2743.
2008-05-03 03:19:39 +00:00
Facundo Batista
ee340e501d
Fixed some test structures. Thanks Mark Dickinson.
2008-05-02 17:39:00 +00:00
Benjamin Peterson
95287fa951
Remove some from __future__ import with_statements
2008-04-30 21:25:55 +00:00
Benjamin Peterson
d8f2d0bdb3
make test_support's captured_output a bit more robust when exceptions happen
2008-04-30 21:03:58 +00:00
Georg Brandl
28e0873f1f
#2719 : backport next() from 3k.
2008-04-30 19:47:09 +00:00
Eric Smith
0a95063d73
Issue 2526, float.__format__ 'n' specifier does not support thousands grouping.
...
Implemented grouping, with tests.
Cleaned up PyOS_ascii_formatd by breaking reformatting into smaller functions.
2008-04-30 01:09:30 +00:00
Amaury Forgeot d'Arc
87da1278eb
test_sundry performs minimal tests (a simple import...) on modules that are not tested otherwise.
...
Some of them now have tests and can be removed.
Only 70 to go...
2008-04-28 21:07:06 +00:00
Brett Cannon
8dc4303297
Rename the test_traceback_print() function to traceback_print() to prevent
...
test_capi from automatically calling the function.
2008-04-28 04:50:06 +00:00
Brett Cannon
141534e56f
Fix a bug introduced by the warnings rewrite where tracebacks were being
...
improperly indented.
Closes issue #2699 .
2008-04-28 03:23:50 +00:00
Benjamin Peterson
14204ad982
Allow test_import to work when it is invoked directly
2008-04-25 21:43:56 +00:00
Mark Dickinson
fe536f53ea
Issue 2635: fix bug in the fix_sentence_endings option to textwrap.fill.
2008-04-25 16:59:09 +00:00
Armin Rigo
5364e2e46f
A new crasher.
2008-04-25 09:35:18 +00:00
Amaury Forgeot d'Arc
1c596d5604
Use absolute import for test package
2008-04-24 20:41:50 +00:00
Amaury Forgeot d'Arc
747720540c
Add a few tests for pydoc.
...
This is a modified version of a patch proposed by Humberto Diogenes
in the discussion of issue1883.
I will merge manually this change into the py3k branch: the tests must be adapted.
2008-04-24 20:22:26 +00:00