Georg Brandl
1721e75749
Fix error message -- "expects either 0 or 0 arguments"
2008-03-30 19:43:27 +00:00
Georg Brandl
1c88e0f52c
The other download formats will be available for 2.6 too.
2008-03-30 19:41:39 +00:00
Benjamin Peterson
9d0b604ab8
Updated README regarding doc formats
2008-03-30 19:35:10 +00:00
Georg Brandl
2c55c597fa
Make _fields attr for no fields consistent with _attributes attr.
2008-03-30 19:00:49 +00:00
Georg Brandl
ebc8dedd19
Convert test_ast to unittest and add a test for r62049.
2008-03-30 07:09:22 +00:00
Georg Brandl
c52ed59473
#2505 : allow easier creation of AST nodes.
2008-03-30 07:01:47 +00:00
Georg Brandl
c87c5800e7
Adapt test_ast to the new ExceptHandler type.
2008-03-30 06:53:55 +00:00
Georg Brandl
a48f3ab895
Patch #2511 : Give the "excepthandler" AST item proper attributes by making it a Sum.
2008-03-30 06:40:17 +00:00
Gerhard Häring
c15317efcd
Documented the lastrowid attribute.
2008-03-29 19:11:52 +00:00
Benjamin Peterson
5b63acd31e
#2503 make singletons compared with "is" not == or !=
...
Thanks to Wummel for the patch
2008-03-29 15:24:25 +00:00
Amaury Forgeot d'Arc
672fbf5195
Still investigating on the hanging test_socket.
...
the test itself doesn't do anything on windows, focus on setUp and tearDown.
2008-03-29 14:53:05 +00:00
Amaury Forgeot d'Arc
5e08e8b15c
The buildbot "x86 W2k8 trunk" seems to hang in test_socket.
...
http://www.python.org/dev/buildbot/trunk/x86%20W2k8%20trunk/builds/255/step-test/0
Temporarily increase verbosity of this test.
2008-03-29 13:47:05 +00:00
Georg Brandl
f2bfd54d6f
Properly check for consistency with the third argument of
...
compile() when compiling an AST node.
2008-03-29 13:24:23 +00:00
Amaury Forgeot d'Arc
ea13dc629c
Now that Lib/test/output is gone, tests should not print anything,
...
except in verbose mode.
Support code is much simpler.
2008-03-29 13:14:52 +00:00
Amaury Forgeot d'Arc
bae17a8aa1
lib2to3 should install a logging handler only when run as a main program,
...
not when used as a library.
This may please the buildbots, which fail when test_lib2to3 is run before test_logging.
2008-03-29 12:42:54 +00:00
Georg Brandl
0069d85ba9
Fix capitalization.
2008-03-29 11:46:18 +00:00
Raymond Hettinger
594b76b7eb
Be explicit about what efficient means.
2008-03-29 10:42:07 +00:00
Georg Brandl
91e0cdaedc
Backport #1442 : report exception when startup file cannot be run.
2008-03-29 01:50:06 +00:00
Amaury Forgeot d'Arc
2aece57d7f
Correctly call the base class tearDown();
...
otherwise running test_logging twice produce the errors we see on all buildbots
2008-03-29 01:42:31 +00:00
Amaury Forgeot d'Arc
504a48f90a
Revert my experiment. I found one reason of failures in test_logging.
2008-03-29 01:41:08 +00:00
Gerhard Häring
4130930b4c
Brought documentation for sqlite3 module up-to-date. Fixed Issue1625205 which
...
complained about commit, rollback and close not being documented.
2008-03-29 01:27:37 +00:00
Amaury Forgeot d'Arc
554d4f0c13
At least let the module compile
2008-03-29 00:49:07 +00:00
Amaury Forgeot d'Arc
8a69707b80
Try to understand why most buildbots suddenly turned to red.
...
Undo the only change that might have unexpected effects.
To be followed.
2008-03-29 00:44:58 +00:00
Benjamin Peterson
a45ab9f37d
NIL => NULL
2008-03-28 23:11:01 +00:00
Amaury Forgeot d'Arc
1725f2470b
One #ifdef too much, and I broke all windows buildbots:
...
in pyconfig.h, NTDDI_WIN2KSP4 is not *yet* defined, but will be at some point on some modules.
Let this line even for older SDKs, they don't use it anyway.
2008-03-28 22:43:38 +00:00
Amaury Forgeot d'Arc
94eba715ad
Repair compilation for Visual Studio 2005.
...
I applied the same changes manually to VS7.1 and VC6 files; completely untested.
(Christian, don't try too hard merging this change into py3k.
It will be easier to do the same work again on the branch)
2008-03-28 21:55:29 +00:00
Benjamin Peterson
41cf50d613
#2498 modernized try, except, finally statements in bdb
2008-03-28 20:56:00 +00:00
Amaury Forgeot d'Arc
69b747b735
Fix a reference leak found by Georg, when compiling a class nested in another class.
...
Now "regrtest.py -R:: test_compile" is satisfied.
Will backport.
2008-03-28 20:30:50 +00:00
Georg Brandl
aa5fbdd71a
Silence compiler warning at the source.
2008-03-28 20:22:56 +00:00
Amaury Forgeot d'Arc
473445c964
Silence a compilation warning
2008-03-28 20:17:51 +00:00
Gregory P. Smith
a98be45f18
These svn adds were forgotten in r62000
2008-03-28 20:11:49 +00:00
Gerhard Häring
2a11c05b9d
Update sqlite3 module to match current version of pysqlite.
2008-03-28 20:08:36 +00:00
Georg Brandl
d289ea6df9
#2502 : add example how to do enum types with named tuples.
2008-03-28 12:58:26 +00:00
Georg Brandl
489343e948
Don't use the confusing term "set membership".
2008-03-28 12:24:51 +00:00
Georg Brandl
8ca6c84b6f
Phase out has_key usage in the tutorial; correct docs for PyMapping_HasKey*.
2008-03-28 12:22:12 +00:00
Georg Brandl
fc8eef3c78
Patch #1810 by Thomas Lee, reviewed by myself:
...
allow compiling Python AST objects into code objects
in compile().
2008-03-28 12:11:56 +00:00
Gregory P. Smith
b9803421d2
Accept patch issue2426 by Paul Kippes (kippesp).
...
Adds sqlite3.Connection.iterdump to allow dumping of databases.
2008-03-28 08:32:09 +00:00
Georg Brandl
621cd26253
#2406 : add examples to gzip docs.
2008-03-28 08:06:56 +00:00
Gregory P. Smith
0001c2ecbc
This patch moves some tests from test_urllib2_net to test_urllib2_localnet.
...
The moved tests use a local server rather than going out to external servers.
Accepts patch from issue2429.
Contributed by Jerry Seutter & Michael Foord (fuzzyman) at PyCon 2008.
2008-03-28 08:00:44 +00:00
Neal Norwitz
ab364c4366
Name the main method correctly so the test is run
2008-03-28 07:36:31 +00:00
Neal Norwitz
70cea58c84
Bug 1503: Get the test to pass on OSX. This should make the test more
...
reliable, but I'm not convinced it is the right solution. We need
to determine if this causes the test to hang on any platforms or do
other bad things.
Even if it gets the test to pass reliably, it might be that we want
to fix this in socket. The socket returned from accept() is different
on different platforms (inheriting attributes or not) and we might
want to ensure that the attributes (at least blocking) is the same
across all platforms.
2008-03-28 06:34:03 +00:00
Neal Norwitz
9fdfaaf9af
Fix compiler warning about finite() missing on Solaris.
2008-03-28 05:34:59 +00:00
Martin v. Löwis
85a896902c
Merged revisions 61825-61989 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r61899 | collin.winter | 2008-03-25 17:53:41 +0100 (Di, 25 Mär 2008) | 1 line
Add a missing explicit fixer to test_all_fixers.
........
r61983 | collin.winter | 2008-03-28 03:19:46 +0100 (Fr, 28 Mär 2008) | 2 lines
Fix http://bugs.python.org/issue2453 : support empty excepts in fix_except.
........
2008-03-28 05:27:44 +00:00
Martin v. Löwis
53dbcd33a9
Run 2to3 tests.
2008-03-28 05:26:10 +00:00
Martin v. Löwis
fac4f095c1
Disable test that depends on #2412 being fixed.
2008-03-28 05:25:36 +00:00
Neal Norwitz
d183bdd6fb
Revert r61969 which added casts to Py_CHARMASK to avoid compiler warnings.
...
Rather than sprinkle casts throughout the code, change Py_CHARMASK to
always cast it's result to an unsigned char. This should ensure we
do the right thing when accessing an array with the result.
2008-03-28 04:58:51 +00:00
Jeffrey Yasskin
36550bdde9
Print more information the next time test_socket throws the wrong exception.
2008-03-28 04:53:10 +00:00
Neal Norwitz
023cd00ccc
Allow use of other ports so the test can pass if 9091 is in use
2008-03-28 04:41:34 +00:00
Jeffrey Yasskin
8b9091fba0
Kill a race in test_threading in which the exception info in a thread finishing
...
up after it was joined had a traceback pointing to that thread's (deleted)
target attribute, while the test was trying to check that the target was
destroyed. Big thanks to Antoine Pitrou for diagnosing the race and pointing
out sys.exc_clear() to kill the exception early. This fixes issue 2496.
2008-03-28 04:11:18 +00:00
Amaury Forgeot d'Arc
7db15fe9d9
test_future3.py is a regular test file, and should be part of the test suite
2008-03-28 00:21:34 +00:00