summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Updating for 2.6a2v2.6a2Barry Warsaw2008-04-032-2/+5
|
* Remove debug prints; the buildbot now passes the testsAmaury Forgeot d'Arc2008-04-021-14/+0
|
* Fix: #2315, #2316, #2317: TimedRotatingFileHandler - changed logic to better ↵Vinay Sajip2008-04-021-10/+62
| | | | handle daylight savings time, deletion of old log files, and fixed a bug in calculating rollover when no logging occurs for a longer interval than the rollover period.
* Apply same patch from 3k branch to try and prevent this test from hangingNeal Norwitz2008-04-021-0/+1
| | | | on various platforms, most recently the Alpha Tru64.
* Try to make test_signal less flaky. I still see some flakiness inJeffrey Yasskin2008-04-021-6/+24
| | | | test_itimer_prof.
* A DocTestSuite cannot run multiple times: it clears its globals dictionary ↵Amaury Forgeot d'Arc2008-04-021-3/+2
| | | | | | after the first run. Rebuild the DocTestSuite on each iteration.
* Correct the apparent refleak in test_io:Amaury Forgeot d'Arc2008-04-021-12/+10
| | | | | | | | | | | | | | | When cls is an ABCMeta, every call to isinstance(x, cls) records type(x) in the cls._abc_cache of cls_abc_negative_cache. So we clear these caches at the end of the test. inspect.isabstract() is not the correct test for all ABCs, because there is no @abstractmethod in io.py (why?) isinstance(cls, ABCMeta) would be more exact, but it fails with an infinite recursion. So I used a hack to determine whether a class is an ABCMeta. The true correction would be to turn cls._abc_cache &co into a WeakSet, as py3k does. But classic classes are not weak referenceable... Of course, this change should not be merged into the py3k branch.
* Newly enabled test appears to leak:Amaury Forgeot d'Arc2008-04-011-12/+19
| | | | | it registers the same codec on each iteration. Do it only once at load time.
* Fix and enable a skipped test:Amaury Forgeot d'Arc2008-04-011-5/+4
| | | | | | with python 2.6, enumerating bytes yields 1-char strings, not numbers. Don't merge this into the py3k branch.
* Add ``if __name__ == '__main__'`` to some test files where it didn't take a lotBrett Cannon2008-04-014-18/+36
| | | | of effort to do so.
* Generalize test.test_support.test_stdout() with a base context manager so thatBrett Cannon2008-04-011-7/+11
| | | | it is easy to capture stderr if desired.
* Be sure to close the file. 2 places were deleting the file, so it was probablyNeal Norwitz2008-04-011-1/+3
| | | | | fine, but the last change may be required for the test to pass on Windows. Should we always close the mmap too?
* Merged revisions 61990-62079 via svnmerge fromMartin v. Löwis2008-03-311-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3 ........ r62017 | david.wolever | 2008-03-28 21:54:37 +0100 (Fr, 28 Mär 2008) | 1 line Fixed an out-of-date comment. ........
* Block the sys.exc_clear -3 warning from threading.py.Jeffrey Yasskin2008-03-311-0/+7
|
* Make AST nodes pickleable.Georg Brandl2008-03-301-0/+14
|
* Make _fields attr for no fields consistent with _attributes attr.Georg Brandl2008-03-301-0/+3
|
* Convert test_ast to unittest and add a test for r62049.Georg Brandl2008-03-301-34/+61
|
* Adapt test_ast to the new ExceptHandler type.Georg Brandl2008-03-301-1/+2
|
* #2503 make singletons compared with "is" not == or !=Benjamin Peterson2008-03-2942-117/+116
| | | | Thanks to Wummel for the patch
* Still investigating on the hanging test_socket.Amaury Forgeot d'Arc2008-03-291-2/+4
| | | | the test itself doesn't do anything on windows, focus on setUp and tearDown.
* The buildbot "x86 W2k8 trunk" seems to hang in test_socket.Amaury Forgeot d'Arc2008-03-291-0/+12
| | | | | | http://www.python.org/dev/buildbot/trunk/x86%20W2k8%20trunk/builds/255/step-test/0 Temporarily increase verbosity of this test.
* Properly check for consistency with the third argument ofGeorg Brandl2008-03-291-0/+14
| | | | compile() when compiling an AST node.
* Now that Lib/test/output is gone, tests should not print anything,Amaury Forgeot d'Arc2008-03-291-63/+19
| | | | | except in verbose mode. Support code is much simpler.
* lib2to3 should install a logging handler only when run as a main program,Amaury Forgeot d'Arc2008-03-291-9/+9
| | | | | | not when used as a library. This may please the buildbots, which fail when test_lib2to3 is run before test_logging.
* Correctly call the base class tearDown();Amaury Forgeot d'Arc2008-03-291-0/+1
| | | | otherwise running test_logging twice produce the errors we see on all buildbots
* Revert my experiment. I found one reason of failures in test_logging.Amaury Forgeot d'Arc2008-03-291-3/+1
|
* At least let the module compileAmaury Forgeot d'Arc2008-03-291-0/+1
|
* Try to understand why most buildbots suddenly turned to red.Amaury Forgeot d'Arc2008-03-291-1/+2
| | | | | | Undo the only change that might have unexpected effects. To be followed.
* #2498 modernized try, except, finally statements in bdbBenjamin Peterson2008-03-281-12/+9
|
* These svn adds were forgotten in r62000Gregory P. Smith2008-03-282-0/+115
|
* Update sqlite3 module to match current version of pysqlite.Gerhard Häring2008-03-282-2/+2
|
* Patch #1810 by Thomas Lee, reviewed by myself:Georg Brandl2008-03-281-0/+27
| | | | | allow compiling Python AST objects into code objects in compile().
* Accept patch issue2426 by Paul Kippes (kippesp).Gregory P. Smith2008-03-281-2/+3
| | | | Adds sqlite3.Connection.iterdump to allow dumping of databases.
* This patch moves some tests from test_urllib2_net to test_urllib2_localnet.Gregory P. Smith2008-03-282-97/+203
| | | | | | | | 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.
* Name the main method correctly so the test is runNeal Norwitz2008-03-281-2/+2
|
* Bug 1503: Get the test to pass on OSX. This should make the test moreNeal Norwitz2008-03-281-2/+10
| | | | | | | | | | | | 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.
* Merged revisions 61825-61989 via svnmerge fromMartin v. Löwis2008-03-283-6/+75
| | | | | | | | | | | | | | 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. ........
* Run 2to3 tests.Martin v. Löwis2008-03-281-0/+15
|
* Disable test that depends on #2412 being fixed.Martin v. Löwis2008-03-281-0/+2
|
* Print more information the next time test_socket throws the wrong exception.Jeffrey Yasskin2008-03-281-3/+7
|
* Allow use of other ports so the test can pass if 9091 is in useNeal Norwitz2008-03-281-6/+8
|
* Kill a race in test_threading in which the exception info in a thread finishingJeffrey Yasskin2008-03-282-2/+15
| | | | | | | 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.
* test_future3.py is a regular test file, and should be part of the test suiteAmaury Forgeot d'Arc2008-03-281-1/+0
|
* Issue2495: tokenize.untokenize did not insert space between two consecutive ↵Amaury Forgeot d'Arc2008-03-272-4/+18
| | | | | | | | string literals: "" "" => """", which is invalid code. Will backport
* The bug for which there was a test in outstanding_bugs.py was agreed not to ↵Georg Brandl2008-03-271-34/+3
| | | | be a bug.
* #2248: return result of QUIT from quit().Georg Brandl2008-03-271-1/+2
|
* Fixed tokenize testsChristian Heimes2008-03-271-1/+7
| | | | The tokenize module doesn't understand __future__.unicode_literals yet
* Added test cases for single quoted strings, both forms of triple quotes,Eric Smith2008-03-271-1/+24
| | | | | and some string concatenations. Removed unneeded __future__ print_function import.
* Fix test_compiler after adding unicode_literalsNeal Norwitz2008-03-271-1/+2
|
* Use the new unicode literals for the io moduleChristian Heimes2008-03-262-6/+9
| | | | use basestring instead of str in Python 2.x