Commit graph

38677 commits

Author SHA1 Message Date
Georg Brandl
225163d6a6 Fix some rst. 2008-03-05 07:10:35 +00:00
Jeffrey Yasskin
f28896d0bb Fix test_socketserver on Windows after r61099 added several signal.alarm()
calls (which don't exist on non-Unix platforms).

Thanks to Trent Nelson for the report and patch.
2008-03-05 06:19:56 +00:00
Neal Norwitz
89cb9b799b test_smtplib sometimes reports leaks too, suppress it 2008-03-05 05:51:20 +00:00
Neal Norwitz
38bdfaa14b Use -u urlfetch to run more tests 2008-03-05 05:50:20 +00:00
Neal Norwitz
64984a895e Tabs -> spaces 2008-03-05 05:49:03 +00:00
Neal Norwitz
48309d5a4b Make the timeout longer to give slow machines a chance to pass the test
before timing out.  This doesn't change the duration of the test under
normal circumstances.  This is targetted at fixing the spurious failures
on the FreeBSD buildbot primarily.
2008-03-05 05:38:06 +00:00
Neal Norwitz
ce527883dc Catch OSError when trying to remove a file in case removal fails. This
should prevent a failure in tearDown masking any real test failure.
2008-03-05 05:20:44 +00:00
Neal Norwitz
218072595e Get this test to pass even when there is no sound card in the system.
Patch from Trent Nelson.  (I can't test this.)
2008-03-05 05:14:18 +00:00
Neal Norwitz
31e88934ed Remove the files/dirs after closing the DB so the tests work on Windows.
Patch from Trent Nelson.  Also simplified removing a file by using test_support.
2008-03-05 05:10:48 +00:00
Amaury Forgeot d'Arc
d21fb4c2e0 Issue#2238: some syntax errors from *args or **kwargs expressions
would give bogus error messages, because of untested exceptions::

    >>> f(**g(1=2))
    XXX undetected error
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    TypeError: 'int' object is not iterable

instead of the expected SyntaxError: keyword can't be an expression

Will backport.
2008-03-05 01:50:33 +00:00
Andrew M. Kuchling
3710a13506 Add more items; add fragmentary notes 2008-03-05 00:44:41 +00:00
Raymond Hettinger
f1cca2b593 Fix refleak in chain(). 2008-03-04 22:29:44 +00:00
Fred Drake
a28df13a9d fix typo 2008-03-04 21:14:04 +00:00
Thomas Heller
a23aede562 Try to fix the build for PY_LINUX. 2008-03-04 20:21:42 +00:00
Thomas Heller
8bdf81d2df Merged changes from libffi3-branch.
The bundled libffi copy is now in sync with the recently released
libffi3.0.4 version, apart from some small changes to
Modules/_ctypes/libffi/configure.ac.

I gave up on using libffi3 files on os x.
Instead, static configuration with files from pyobjc is used.
2008-03-04 20:09:11 +00:00
Neal Norwitz
4a50d26ba2 Close the file before trying to remove the directory so it works on Windows.
As reported by Trent Nelson on python-dev.
2008-03-04 16:22:46 +00:00
Georg Brandl
fd6cabfe21 #2230: document that PyArg_* leaves addresses alone on error. 2008-03-04 07:33:30 +00:00
Georg Brandl
27504dae1b Fix some patch attributions. 2008-03-04 07:25:54 +00:00
Raymond Hettinger
d553d856e7 Beef-up docs and tests for itertools. Fix-up end-case for product(). 2008-03-04 04:17:08 +00:00
Andrew M. Kuchling
378586a844 Thesis night results: add various items 2008-03-04 01:50:32 +00:00
Andrew M. Kuchling
3fe1843cee Add versionadded tags 2008-03-04 01:49:37 +00:00
Andrew M. Kuchling
c6511a851e Typo fix 2008-03-04 01:48:26 +00:00
Andrew M. Kuchling
684868ac90 Fix sentence fragment 2008-03-04 01:47:38 +00:00
Andrew M. Kuchling
ece10b4004 Grammar fix; markup fix 2008-03-04 01:30:10 +00:00
Andrew M. Kuchling
91ae0c9a70 Typo fix 2008-03-04 00:40:32 +00:00
Raymond Hettinger
10ac19bedc Issue 2226: Callable checked for the wrong abstract method. 2008-03-03 22:19:58 +00:00
Raymond Hettinger
972fb077a0 Remove dependency on itertools -- a simple genexp suffices. 2008-03-03 22:04:55 +00:00
Georg Brandl
8e67ef52db Expand a bit on genexp scopes. 2008-03-03 21:31:50 +00:00
Georg Brandl
d2f7680b8f Actually import itertools. 2008-03-03 21:22:47 +00:00
Georg Brandl
26bc177fe6 15 -> 16, the 2nd 2008-03-03 20:39:00 +00:00
Georg Brandl
3e9d66fee1 There are now sixteen isfoo functions. 2008-03-03 20:37:55 +00:00
Christian Heimes
728bee897f 15 -> 16 2008-03-03 20:30:29 +00:00
Christian Heimes
608c1d8e87 Since abc._Abstract was replaces by a new type flags the regression test suite fails. I've added a new function inspect.isabstract(). Is the mmethod fine or should I check if object is a instance of type or subclass of object, too? 2008-03-03 18:28:04 +00:00
Christian Heimes
1f178a6fac Initialized merge tracking via "svnmerge" with revisions "1-60195" from
svn+ssh://pythondev@svn.python.org/python/branches/trunk-math
2008-03-03 12:40:17 +00:00
Neal Norwitz
ca752f3b1a Only DECREF if ret != NULL 2008-03-03 04:37:45 +00:00
Brett Cannon
7dbd91811d Add test_main() functions to various tests where it was simple to do. Done so
that regrtest can execute the test_main() directly instead of relying on import
side-effects.
2008-03-03 04:19:29 +00:00
Brett Cannon
963c80fd45 Add a note in the main test class' docstring that the order of execution of the
tests is important.
2008-03-03 03:26:43 +00:00
Brett Cannon
bfbf5b3715 Add a note in the main test class' docstring that the order of execution of the
tests is important.
2008-03-03 03:24:48 +00:00
Brett Cannon
6382ffc892 Move test_largefile over to using 'with' statements for open files.
Also rename the driver function to test_main() instead of main_test().
2008-03-03 02:41:40 +00:00
Jeffrey Yasskin
9063a99042 compile.c always emits END_FINALLY after WITH_CLEANUP, so predict that in
ceval.c. This is worth about a .03-.04us speedup on a simple with block.
2008-03-03 01:27:03 +00:00
Brett Cannon
56c4debe0d Refactor test_logging to use unittest. This should finally solve the flakiness
issues.

Thanks to Antoine Pitrou for the patch.
2008-03-03 00:38:58 +00:00
Gregory P. Smith
492e2bfefa Modify import of test_support so that the code can also be used with a
stand alone distribution of bsddb that includes its own small copy of
test_support for the needed functionality on older pythons.
2008-03-02 20:00:53 +00:00
Georg Brandl
e6dab2a077 Fix factual error. 2008-03-02 14:15:04 +00:00
Georg Brandl
72780a4b0c Make clear that the constants are strings. 2008-03-02 13:41:39 +00:00
Gerhard Häring
11ab807fff Added note about update of sqlite3 module. 2008-03-02 13:12:27 +00:00
Gerhard Häring
f40f6846e3 Made sqlite3 module's regression tests work with SQLite versions that don't
support "create table if not exists", yet.
2008-03-02 13:08:03 +00:00
Raymond Hettinger
e3fabd10cb Handle 0-tuples which can be singletons. 2008-03-02 12:02:19 +00:00
Raymond Hettinger
61024b9181 Simplify code for itertools.product(). 2008-03-02 11:57:16 +00:00
Raymond Hettinger
2b7a5c468b Tighten example code. 2008-03-02 11:17:51 +00:00
Raymond Hettinger
f287f17779 Finish-up docs for combinations() and permutations() in itertools. 2008-03-02 10:59:31 +00:00