1. 02 Apr, 2008 1 commit
    • Benjamin Peterson's avatar
      Blocked revisions 62095,62099 via svnmerge · ba756b5a
      Benjamin Peterson authored
      ........
        r62095 | amaury.forgeotdarc | 2008-04-01 17:37:33 -0500 (Tue, 01 Apr 2008) | 5 lines
      
        Fix and enable a skipped test:
        with python 2.6, enumerating bytes yields 1-char strings, not numbers.
      
        Don't merge this into the py3k branch.
      ........
        r62099 | amaury.forgeotdarc | 2008-04-01 19:25:14 -0500 (Tue, 01 Apr 2008) | 14 lines
      
        Correct the apparent refleak in test_io:
        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.
      ........
      ba756b5a
  2. 01 Apr, 2008 5 commits
    • Amaury Forgeot d'Arc's avatar
      Prevent test_queue from leaking: one worker thread was not stopped. · b4febc79
      Amaury Forgeot d'Arc authored
      The version in trunk/ is correct; the problem with 3.0 is that
      None cannot be used as a marker in a PriorityQueue, because it cannot be compared with ints.
      b4febc79
    • Neal Norwitz's avatar
    • Neal Norwitz's avatar
    • Neal Norwitz's avatar
      Fix a refleak · d2bee32e
      Neal Norwitz authored
      d2bee32e
    • Martin v. Löwis's avatar
      Merged revisions... · e1e9f235
      Martin v. Löwis authored
      Merged revisions 61440-61441,61443,61445-61448,61451-61452,61455-61457,61459-61464,61466-61467,61469-61470,61476-61477,61479,61481-61482,61485,61487,61490,61493-61494,61497,61499-61502,61505-61506,61508,61511-61514,61519,61521-61522,61530-61531,61533-61537,61541-61555,61557-61558,61561-61562,61566-61569,61572-61574,61578-61579,61583-61584,61588-61589,61592,61594,61598-61601,61603-61604,61607-61612,61617,61619-61620,61624,61626,61628-61630,61635-61638,61640-61643,61645,61648,61653-61655,61659-61662,61664,61666,61668-61671,61673,61675,61679-61680,61682,61685-61686,61689-61695,61697-61699,61701-61703,61706,61710,61713,61717,61723,61726-61730,61736,61738,61740,61742,61745-61752,61754-61760,61762-61764,61768,61770-61772,61774-61775,61784-61787,61789-61792,61794-61795,61797-61806,61808-61809,61811-61812,61814-61819,61824,61826-61833,61835-61840,61843-61845,61848,61850,61854-61862,61865-61866,61868,61872-61873,61876-61877,61883-61888,61890-61891,61893-61899,61901-61903,61905-61912,61914,61917,61920-61921,61927,61930,61932-61934,61939,61941-61942,61944-61951,61955,61960-61963,61980,61982-61983,61991,61994-61996,62001-62003,62008-62010,62016-62017,62022,62024,62027,62031-62034,62041,62045-62046,62055-62058,62060-62066,62068-62074,62076-62085 via svnmerge from
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ................
        r62080 | martin.v.loewis | 2008-03-31 07:20:55 +0200 (Mo, 31 Mär 2008) | 9 lines
      
        Merged revisions 61990-62079 via svnmerge from
        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.
        ........
      ................
        r62084 | benjamin.peterson | 2008-03-31 23:57:13 +0200 (Mo, 31 Mär 2008) | 2 lines
      
        PyErr_Warn is decrepated. Use PyErr_WarnEx
      ................
        r62085 | neal.norwitz | 2008-04-01 07:40:43 +0200 (Di, 01 Apr 2008) | 4 lines
      
        Be sure to close the file.  2 places were deleting the file, so it was probably
        fine, but the last change may be required for the test to pass on Windows.
        Should we always close the mmap too?
      ................
      e1e9f235
  3. 31 Mar, 2008 12 commits
    • Neal Norwitz's avatar
      This was required on OS X to prevent the test from deadlocking. I'm not sure · f9ff5f02
      Neal Norwitz authored
      if this is just a test problem or something deeper.  Hopefully the test will
      stop hanging.
      f9ff5f02
    • Neal Norwitz's avatar
      Merged revisions... · ee9b10a9
      Neal Norwitz authored
      Merged revisions 61440-61441,61443,61445-61448,61451-61452,61455-61457,61459-61464,61466-61467,61469-61470,61476-61477,61479,61481-61482,61485,61487,61490,61493-61494,61497,61499-61502,61505-61506,61508,61511-61514,61519,61521-61522,61530-61531,61533-61537,61541-61555,61557-61558,61561-61562,61566-61569,61572-61574,61578-61579,61583-61584,61588-61589,61592,61594,61598-61601,61603-61604,61607-61612,61617,61619-61620,61624,61626,61628-61630,61635-61638,61640-61643,61645,61648,61653-61655,61659-61662,61664,61666,61668-61671,61673,61675,61679-61680,61682,61685-61686,61689-61695,61697-61699,61701-61703,61706,61710,61713,61717,61723,61726-61730,61736,61738,61740,61742,61745-61752,61754-61760,61762-61764,61768,61770-61772,61774-61775,61784-61787,61789-61792,61794-61795,61797-61806,61808-61809,61811-61812,61814-61819,61824,61826-61833,61835-61840,61843-61845,61848,61850,61854-61862,61865-61866,61868,61872-61873,61876-61877,61883-61888,61890-61891,61893-61899,61901-61903,61905-61912,61914,61917,61920-61921,61927,61930,61932-61934,61939,61941-61942,61944-61951,61955,61960-61963,61980,61982-61983,61991,61994-61996,62001-62003,62008-62010,62016-62017,62022,62024,62027,62031-62034,62041,62045-62046,62048,62050-62051,62055-62066,62068-62074,62076-62078 via svnmerge from
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r62048 | georg.brandl | 2008-03-29 23:53:55 -0700 (Sat, 29 Mar 2008) | 2 lines
      
        Adapt test_ast to the new ExceptHandler type.
      ........
        r62050 | georg.brandl | 2008-03-30 00:09:22 -0700 (Sun, 30 Mar 2008) | 2 lines
      
        Convert test_ast to unittest and add a test for r62049.
      ........
        r62051 | georg.brandl | 2008-03-30 12:00:49 -0700 (Sun, 30 Mar 2008) | 2 lines
      
        Make _fields attr for no fields consistent with _attributes attr.
      ........
        r62059 | georg.brandl | 2008-03-30 13:20:39 -0700 (Sun, 30 Mar 2008) | 2 lines
      
        Make AST nodes pickleable.
      ........
      ee9b10a9
    • Neal Norwitz's avatar
      Merged revisions 62047 via svnmerge from · ad74aa8d
      Neal Norwitz authored
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r62047 | georg.brandl | 2008-03-29 23:40:17 -0700 (Sat, 29 Mar 2008) | 2 lines
      
        Patch #2511: Give the "excepthandler" AST item proper attributes by making it a Sum.
      ........
      ad74aa8d
    • Neal Norwitz's avatar
      Blocked revisions 62075 via svnmerge · d3575938
      Neal Norwitz authored
      ........
        r62075 | neal.norwitz | 2008-03-30 21:28:40 -0700 (Sun, 30 Mar 2008) | 1 line
      
        Use file.write instead of print to make it easier to merge with 3k.
      ........
      d3575938
    • Neal Norwitz's avatar
      Merged revisions 62049,62054 via svnmerge from · 207c9f3c
      Neal Norwitz authored
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r62049 | georg.brandl | 2008-03-30 00:01:47 -0700 (Sun, 30 Mar 2008) | 2 lines
      
        #2505: allow easier creation of AST nodes.
      ........
        r62054 | georg.brandl | 2008-03-30 12:43:27 -0700 (Sun, 30 Mar 2008) | 2 lines
      
        Fix error message -- "expects either 0 or 0 arguments"
      ........
      207c9f3c
    • Neal Norwitz's avatar
      Merged revisions 62039-62042 via svnmerge from · db4115ff
      Neal Norwitz authored
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r62039 | georg.brandl | 2008-03-29 06:24:23 -0700 (Sat, 29 Mar 2008) | 3 lines
      
        Properly check for consistency with the third argument of
        compile() when compiling an AST node.
      ........
        r62040 | amaury.forgeotdarc | 2008-03-29 06:47:05 -0700 (Sat, 29 Mar 2008) | 5 lines
      
        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.
      ........
        r62042 | amaury.forgeotdarc | 2008-03-29 07:53:05 -0700 (Sat, 29 Mar 2008) | 3 lines
      
        Still investigating on the hanging test_socket.
        the test itself doesn't do anything on windows, focus on setUp and tearDown.
      ........
      db4115ff
    • Neal Norwitz's avatar
      Blocked revisions 62020 via svnmerge · 9367c78c
      Neal Norwitz authored
      ........
        r62020 | amaury.forgeotdarc | 2008-03-28 15:43:38 -0700 (Fri, 28 Mar 2008) | 5 lines
      
        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.
      ........
      9367c78c
    • Neal Norwitz's avatar
      Revert r62070 due to syntax errors · fe4ce560
      Neal Norwitz authored
      fe4ce560
    • Neal Norwitz's avatar
      Revert r62070 due to syntax errors · 94fa2ee7
      Neal Norwitz authored
      94fa2ee7
    • Benjamin Peterson's avatar
      4fde0c40
    • Benjamin Peterson's avatar
      Merged revisions 62021,62029,62035-62038,62043-62044,62052-62053 via svnmerge from · 2a691a81
      Benjamin Peterson authored
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r62021 | benjamin.peterson | 2008-03-28 18:11:01 -0500 (Fri, 28 Mar 2008) | 2 lines
      
        NIL => NULL
      ........
        r62029 | amaury.forgeotdarc | 2008-03-28 20:42:31 -0500 (Fri, 28 Mar 2008) | 3 lines
      
        Correctly call the base class tearDown();
        otherwise running test_logging twice produce the errors we see on all buildbots
      ........
        r62035 | raymond.hettinger | 2008-03-29 05:42:07 -0500 (Sat, 29 Mar 2008) | 1 line
      
        Be explicit about what efficient means.
      ........
        r62036 | georg.brandl | 2008-03-29 06:46:18 -0500 (Sat, 29 Mar 2008) | 2 lines
      
        Fix capitalization.
      ........
        r62037 | amaury.forgeotdarc | 2008-03-29 07:42:54 -0500 (Sat, 29 Mar 2008) | 5 lines
      
        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.
      ........
        r62043 | benjamin.peterson | 2008-03-29 10:24:25 -0500 (Sat, 29 Mar 2008) | 3 lines
      
        #2503 make singletons compared with "is" not == or !=
        Thanks to Wummel for the patch
      ........
        r62044 | gerhard.haering | 2008-03-29 14:11:52 -0500 (Sat, 29 Mar 2008) | 2 lines
      
        Documented the lastrowid attribute.
      ........
        r62052 | benjamin.peterson | 2008-03-30 14:35:10 -0500 (Sun, 30 Mar 2008) | 2 lines
      
        Updated README regarding doc formats
      ........
        r62053 | georg.brandl | 2008-03-30 14:41:39 -0500 (Sun, 30 Mar 2008) | 2 lines
      
        The other download formats will be available for 2.6 too.
      ........
      2a691a81
    • Jeffrey Yasskin's avatar
      Blocked revisions 62067 via svnmerge · 7315bad3
      Jeffrey Yasskin authored
      ........
        r62067 | jeffrey.yasskin | 2008-03-30 17:35:53 -0700 (Sun, 30 Mar 2008) | 2 lines
      
        Block the sys.exc_clear -3 warning from threading.py.
      ........
      7315bad3
  4. 30 Mar, 2008 11 commits
  5. 29 Mar, 2008 8 commits
  6. 28 Mar, 2008 3 commits
    • Christian Heimes's avatar
      Merged revisions 61981,61984-61987,61992-61993,61997-62000 via svnmerge from · bbe741dd
      Christian Heimes authored
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r61981 | amaury.forgeotdarc | 2008-03-28 01:21:34 +0100 (Fri, 28 Mar 2008) | 2 lines
      
        test_future3.py is a regular test file, and should be part of the test suite
      ........
        r61984 | jeffrey.yasskin | 2008-03-28 05:11:18 +0100 (Fri, 28 Mar 2008) | 6 lines
      
        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.
      ........
        r61985 | neal.norwitz | 2008-03-28 05:41:34 +0100 (Fri, 28 Mar 2008) | 1 line
      
        Allow use of other ports so the test can pass if 9091 is in use
      ........
        r61986 | jeffrey.yasskin | 2008-03-28 05:53:10 +0100 (Fri, 28 Mar 2008) | 2 lines
      
        Print more information the next time test_socket throws the wrong exception.
      ........
        r61987 | neal.norwitz | 2008-03-28 05:58:51 +0100 (Fri, 28 Mar 2008) | 5 lines
      
        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.
      ........
        r61992 | neal.norwitz | 2008-03-28 06:34:59 +0100 (Fri, 28 Mar 2008) | 2 lines
      
        Fix compiler warning about finite() missing on Solaris.
      ........
        r61993 | neal.norwitz | 2008-03-28 07:34:03 +0100 (Fri, 28 Mar 2008) | 11 lines
      
        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.
      ........
        r61997 | neal.norwitz | 2008-03-28 08:36:31 +0100 (Fri, 28 Mar 2008) | 1 line
      
        Name the main method correctly so the test is run
      ........
        r61998 | gregory.p.smith | 2008-03-28 09:00:44 +0100 (Fri, 28 Mar 2008) | 7 lines
      
        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.
      ........
        r61999 | georg.brandl | 2008-03-28 09:06:56 +0100 (Fri, 28 Mar 2008) | 2 lines
      
        #2406: add examples to gzip docs.
      ........
        r62000 | gregory.p.smith | 2008-03-28 09:32:09 +0100 (Fri, 28 Mar 2008) | 4 lines
      
        Accept patch issue2426 by Paul Kippes (kippesp).
      
        Adds sqlite3.Connection.iterdump to allow dumping of databases.
      ........
      bbe741dd
    • Christian Heimes's avatar
      Fixed an import · 75d43c83
      Christian Heimes authored
      75d43c83
    • Martin v. Löwis's avatar
      Merged revisions 61988-61990 via svnmerge from · 51d1864e
      Martin v. Löwis authored
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ................
        r61988 | martin.v.loewis | 2008-03-28 06:25:36 +0100 (Fr, 28 Mär 2008) | 2 lines
      
        Disable test that depends on #2412 being fixed.
      ................
        r61989 | martin.v.loewis | 2008-03-28 06:26:10 +0100 (Fr, 28 Mär 2008) | 2 lines
      
        Run 2to3 tests.
      ................
        r61990 | martin.v.loewis | 2008-03-28 06:27:44 +0100 (Fr, 28 Mär 2008) | 13 lines
      
        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.
        ........
      ................
      51d1864e