Commit Graph

15279 Commits

Author SHA1 Message Date
Georg Brandl 1f6176e794 Fix some name errors in Mac modules. 2010-02-06 23:54:43 +00:00
Georg Brandl 7e1902bced Add missing import when running these tests standalone. 2010-02-06 23:54:04 +00:00
Georg Brandl 28aeb0d0ab Add missing import when running these tests standalone. 2010-02-06 23:53:52 +00:00
Georg Brandl cd4a21bb8e Fix more unbound locals in code paths that do not seem to be used. 2010-02-06 23:34:10 +00:00
Georg Brandl bd564c3c21 Fix import/access for some identifiers. _TestSharedCTypes does not seem to be executed? 2010-02-06 23:33:33 +00:00
Georg Brandl c7ca56d213 We heard you like test failures so we put unbound locals in your test so that you can fail while you fail. 2010-02-06 23:23:45 +00:00
Georg Brandl d10d8ee2a1 Fix various missing import/unbound name errors. 2010-02-06 23:18:00 +00:00
Georg Brandl 1a0ffe168a Remove duplicate test method. 2010-02-06 23:12:19 +00:00
Georg Brandl d1fa76e742 Add missing import. 2010-02-06 23:12:12 +00:00
Mark Dickinson 28d4f9e668 testCopysign was defined twice in test_math; combine the definitions 2010-02-06 23:11:25 +00:00
Georg Brandl df8a303dff Fix a few UnboundLocalErrors in test_long. 2010-02-06 23:08:00 +00:00
Georg Brandl 8fd107f8ea Add missing imports. 2010-02-06 23:06:24 +00:00
Georg Brandl 7224350656 Add a missing import. 2010-02-06 23:02:29 +00:00
Georg Brandl 84fedf7f06 No need to assign the results of expressions used only for side effects. 2010-02-06 22:59:15 +00:00
Georg Brandl 7d4b759bd9 Remove unused import. 2010-02-06 22:49:47 +00:00
Georg Brandl 48e65f5f66 Fix duplicate import. 2010-02-06 22:44:17 +00:00
Benjamin Peterson 239f138aea make waiting for the server to start robust 2010-02-06 22:08:15 +00:00
Georg Brandl 26a1f72637 Remove unused imports from test_logging. 2010-02-06 21:54:40 +00:00
Vinay Sajip 7f22443d94 Issue #7857: Gave server thread more time to get ready, and re-enabled a skipped test. 2010-02-06 20:28:36 +00:00
Benjamin Peterson 42d5947ef5 check type_getattro for correctness in a descriptor corner case 2010-02-06 20:14:10 +00:00
Vinay Sajip 5749d88243 Issue #7857: Tentatively re-enabling one test to see effect on buildbots. 2010-02-06 20:00:43 +00:00
Benjamin Peterson a7be9d240a bump version to 2.7a3 2010-02-06 16:37:32 +00:00
R. David Murray ce6e4b0930 issue #7728: test_timeout was using a hardcoded port, which was
causing buildbot failures.  Changed to use test_support.bind_port.
Patch by Florent Xicluna.
2010-02-06 04:27:21 +00:00
Michael Foord 0877060f86 unittest.TestLoader creates a TestSuite before calling load_tests. Issue 7799. 2010-02-06 00:22:26 +00:00
Vinay Sajip 2373926964 test_logging: minor tweaks to timeouts, listening tests marked as skipped. 2010-02-05 23:43:11 +00:00
Michael Foord 757cc4d15f Correction to docstring correction. 2010-02-05 23:22:37 +00:00
Michael Foord d0edec38ce Improving docstrings in unittest.TestCase 2010-02-05 22:55:09 +00:00
Antoine Pitrou bb445a1f22 Issue #5677: Explicitly forbid write operations on read-only file objects,
and read operations on write-only file objects.  On Windows, the system C
library would return a bogus result; on Solaris, it was possible to crash
the interpreter.  Patch by Stefan Krah.
2010-02-05 17:05:54 +00:00
Vinay Sajip 007a618a38 Issue #7857: test_logging: listener tests disabled for now. 2010-02-05 15:40:20 +00:00
Vinay Sajip 3dd734fe03 Issue #7857: test_logging: listener test now uses find_unused_port(). 2010-02-05 14:52:05 +00:00
Benjamin Peterson 565d78586b normalize exceptions passed to the __exit__ method #7853
In Python 2.x, exceptions in finally blocks are not normalized.  Since with
statements are implemented using finally blocks, ceval.c had to be tweaked to
distinguish between with finally blocks and normal ones.

A test for the finalization of generators containing with statements was also
added.
2010-02-05 02:12:14 +00:00
Benjamin Peterson 4a7ff1d80a add a test for #7853; the exception must be normalized for with 2010-02-05 01:53:27 +00:00
Vinay Sajip f7610b23de Added unit test for cfg:// resolution. 2010-02-04 21:40:56 +00:00
Vinay Sajip 98ce620068 Removed spurious print statement. 2010-02-04 20:18:28 +00:00
Vinay Sajip 28c382f73a Logging: Implemented PEP 391. 2010-02-04 18:48:53 +00:00
Brett Cannon dc84f8fbb4 Fix a typo in a docstring introduced in r77956. 2010-02-03 22:13:44 +00:00
Brett Cannon 18e4db5ebe Update a docstring to suggest using importlib.import_module instead of calling __import__ directly. 2010-02-03 22:11:54 +00:00
Mark Dickinson c68e9f0d20 Fix test_inspect.py data to match recent change to inspect_fodder.py (r77942). 2010-02-03 16:50:14 +00:00
Tarek Ziadé b8c7b017e2 leaving global attributes for backward compat 2010-02-03 15:38:12 +00:00
Ezio Melotti dde5b94875 #7092: Silence more py3k warnings. Patch by Florent Xicluna. 2010-02-03 05:37:26 +00:00
Tarek Ziadé bece7f2d36 fixed a typo on distutils.sysconfig. thanks arfever 2010-02-02 22:55:00 +00:00
Tarek Ziadé e81b0289b6 sysconfig.get_scheme_names now returns a sorted tuple 2010-02-02 22:54:28 +00:00
Tarek Ziadé cc11817808 module reorganization + missing doctests 2010-02-02 22:50:23 +00:00
Ezio Melotti 1f517e1d53 #7092: Silence py3k warnings in test_exceptions and test_pep352. Patch by Florent Xicluna. 2010-02-02 17:34:37 +00:00
Ezio Melotti 8d3f130d41 Fix idioms and a couple of py3k warnings. Patch by Florent Xicluna. 2010-02-02 15:57:45 +00:00
Ezio Melotti 0ac4d4c82d Silence a couple of -3 warnings 2010-02-02 15:12:42 +00:00
Ezio Melotti 5d62cfe070 #7092: silence py3k warnings for bsddb. Patch by Florent Xicluna. 2010-02-02 08:37:35 +00:00
Martin v. Löwis 1595f9fe9b Merged revisions 77855-77856,77870 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r77855 | benjamin.peterson | 2010-01-30 17:32:05 +0100 (Sa, 30 Jan 2010) | 1 line

  don't return node if it is not changed
........
  r77856 | benjamin.peterson | 2010-01-30 17:35:29 +0100 (Sa, 30 Jan 2010) | 1 line

  return None to indicate no change
........
  r77870 | benjamin.peterson | 2010-01-31 02:21:26 +0100 (So, 31 Jan 2010) | 1 line

  never return the original node given to transform()
........
2010-02-01 01:15:39 +00:00
Victor Stinner b4b0a2935d Issue #7819: Check sys.call_tracing() arguments types.
py3k was already patched by issue #3661.
2010-01-31 22:32:15 +00:00
Antoine Pitrou f3fa074703 - Issue #6939: Fix file I/O objects in the `io` module to keep the original
file position when calling `truncate()`.  It would previously change the
  file position to the given argument, which goes against the tradition of
  ftruncate() and other truncation APIs.  Patch by Pascal Chambon.
2010-01-31 22:26:04 +00:00