Commit Graph

6039 Commits

Author SHA1 Message Date
Mark Dickinson 5d730177a9 Acknowledge the role of the MPFR library in creating cmath_testcases.txt 2009-06-16 20:31:12 +00:00
Benjamin Peterson 08a0bbc846 don't mask encoding errors when decoding a string #6289 2009-06-16 00:29:31 +00:00
Amaury Forgeot d'Arc f81ff989d6 #6227: Because of a wrong indentation, the test was not testing what it should.
Ensure that the snippet in doctest_aliases actually contains aliases.
2009-06-14 21:20:40 +00:00
Benjamin Peterson a72be3b325 when no module is given in a 'from' relative import, make ImportFrom.module NULL 2009-06-13 20:23:33 +00:00
Benjamin Peterson 52c4bec76b give a better error message when deleting () 2009-06-13 17:08:53 +00:00
Benjamin Peterson d1f5a59edb allow importing from a module named None if it has an 'as' clause 2009-06-13 13:06:21 +00:00
Benjamin Peterson 565e1b6bb7 prevent import statements from assigning to None 2009-06-13 03:46:30 +00:00
Benjamin Peterson 4afbba3d34 keep the slice.step field as NULL if no step expression is given 2009-06-13 01:40:00 +00:00
Alexandre Vassalotti cb73bdac95 Revert r73401 per Raymond Hettinger's request.
The rational is the change might cause imcompatiblity problems with
PyYAML. In addition, Raymond wants to kept the different versions of
collections synchronized across Python versions.
2009-06-12 23:03:35 +00:00
Alexandre Vassalotti 450ae573bc Make pickling of OrderedDict instances more efficient. 2009-06-12 21:52:14 +00:00
Antoine Pitrou c5ae86b9d3 Re-enable testing of builtin open() in test_bufio in test_largefile 2009-06-12 20:54:21 +00:00
Antoine Pitrou 47a5f48006 Try to restore the old test_file and test_univnewlines as new, different files
(with the right revisions this time, hopefully)
2009-06-12 20:41:52 +00:00
Antoine Pitrou c5d2b4156c Restore the old test_file.py (for the builtin file object) as a new file named test_file2k.py 2009-06-12 20:36:25 +00:00
Antoine Pitrou 1969059327 Issue #6215: backport the 3.1 io lib 2009-06-12 20:14:08 +00:00
Amaury Forgeot d'Arc 5217c0848a Missing import in test_curses, uncovered by some buildbots.
(There are still a few test files that don't use the standard layout)
2009-06-09 23:37:11 +00:00
Eric Smith 9eeeee9d71 Restored a test that was erroneously removed. See issue 6198. 2009-06-09 12:38:08 +00:00
Benjamin Peterson a5a5728cf0 remove error checks already done in set_context() 2009-06-08 23:44:13 +00:00
Benjamin Peterson 64092a56ec backport r73273 2009-06-07 23:12:44 +00:00
Georg Brandl 9be5998760 #6206: fix test__locale. 2009-06-06 05:54:34 +00:00
Michael Foord d53d085ada Fix unittest discovery tests for Windows. Issue 6199 2009-06-05 14:14:34 +00:00
Eric Smith 7c58b09b64 Removed tests so that test_float pass on Windows. See issue 6198. 2009-06-05 12:33:26 +00:00
Hirokazu Yamamoto fbf63a7dfa Fix test__locale on windows (Backport of r72365) 2009-06-05 05:15:58 +00:00
Georg Brandl 4da2fa5517 Add test for #3684. 2009-06-04 18:59:58 +00:00
Georg Brandl 46121e79ce Better name for "Ctor". 2009-06-04 10:10:41 +00:00
Georg Brandl 19e79f79ce Avoid PendingDeprecationWarnings emitted by deprecated unittest methods. 2009-06-03 23:23:45 +00:00
Michael Foord dad7b7b1cb Restore default testRunner argument in unittest.main to None. Issue 6177 2009-06-02 18:08:27 +00:00
Gregory P. Smith 61e7fbf2c1 Fixes issue6169: it was possible for two ipaddr network addresses to compare
as both < and > than eachother.
2009-06-02 05:25:34 +00:00
Amaury Forgeot d'Arc b02ceda3a5 #4547: When debugging a very large function, it was not always
possible to update the lineno attribute of the current frame.
2009-06-01 20:53:18 +00:00
R. David Murray 8fcaebbef4 Issue 3848: document the fact that epoll register raises an IOError if
an fd is registered twice, and add some additional epoll tests.  Patch
by Christian Heimes.
2009-05-31 19:15:57 +00:00
Benjamin Peterson 382ccdfd5b remove function import 2009-05-31 14:43:00 +00:00
Antoine Pitrou 4698d9928e Issue #6152: New option '-j'/'--multiprocess' for regrtest allows running
regression tests in parallel, shortening the total runtime.
2009-05-31 14:20:14 +00:00
Antoine Pitrou 4528bcde77 The test for #5330 wasn't correct. 2009-05-30 21:39:25 +00:00
Antoine Pitrou 46dbe27f7e Issue #5330: C functions called with keyword arguments were not reported by
the various profiling modules (profile, cProfile). Patch by Hagen Fürstenau.
2009-05-30 21:27:00 +00:00
Benjamin Peterson 465089271f add with statements 2009-05-29 21:48:19 +00:00
Michael Foord b4a81c838a Add test discovery to unittest. Issue 6001. 2009-05-29 20:33:46 +00:00
R. David Murray 6b98544b32 Refactor test parameterization to resolve update timing problem. 2009-05-29 17:31:05 +00:00
Raymond Hettinger 578a228ee2 Issue 5982: Classmethod and staticmethod expose wrapped function with __func__. 2009-05-29 04:58:52 +00:00
Raymond Hettinger 822b87f276 Deprecate contextlib.nested(). The with-statement now provides this functionality directly. 2009-05-29 01:46:48 +00:00
R. David Murray 8de212bd4f Backport smtplib auth tests from r72990. 2009-05-28 18:49:23 +00:00
Philip Jenvey 6a111027f2 explicitly close files 2009-05-28 05:58:44 +00:00
R. David Murray d67ea7d4c6 fix issue #6121 by stripping spaces from the argument in the 'help'
function.
2009-05-27 20:07:21 +00:00
Benjamin Peterson 39d43b4660 correctly handle descrs with __missing__ 2009-05-27 02:43:46 +00:00
Raymond Hettinger a68cad13ae Fix field name conflicts for named tuples. 2009-05-27 02:24:45 +00:00
Collin Winter 57bef68bc0 Issue 5794: fix cPickle's unpickling of recursive tuples. 2009-05-26 04:12:39 +00:00
Georg Brandl 944f684ce6 Allow multiple context managers in one with statement, as proposed
in http://codereview.appspot.com/53094 and accepted by Guido.

The construct is transformed into multiple With AST nodes so that
there should be no problems with the semantics.
2009-05-25 21:02:56 +00:00
Benjamin Peterson 1880d8b823 add a SETUP_WITH opcode
It speeds up the with statement and correctly looks up the special
methods involved.
2009-05-25 13:13:44 +00:00
Benjamin Peterson 87e5006d8c handle errors from _PyObject_LookupSpecial when __get__ fails 2009-05-25 02:40:21 +00:00
Benjamin Peterson 176a56c69b make class skipping decorators the same as skipping every test of the class
This removes ClassTestSuite and a good bit of hacks.
2009-05-25 00:48:58 +00:00
Martin v. Löwis 0b09c42ffe Issue #6050: Don't fail extracting a directory from a zipfile if
the directory already exists.
2009-05-24 19:30:52 +00:00
Antoine Pitrou d49e375eed Issue #1309352: fcntl now converts its third arguments to a C `long` rather
than an int, which makes some operations possible under 64-bit Linux (e.g.
DN_MULTISHOT with F_NOTIFY).
2009-05-24 15:40:09 +00:00