1. 10 Aug, 2004 7 commits
  2. 09 Aug, 2004 23 commits
  3. 08 Aug, 2004 10 commits
    • Brett Cannon's avatar
      Previous commit was viewed as "perverse". Changed to just cast the unused · 651dd52b
      Brett Cannon authored
      variable to void..
      
      Thanks to Sjoerd Mullender for the suggested change.
      651dd52b
    • Raymond Hettinger's avatar
      Add a test for Context.copy(). · 955d2b21
      Raymond Hettinger authored
      955d2b21
    • Tim Peters's avatar
      Tell unittest that source files with "badsyntax" in their names should · 0955f297
      Tim Peters authored
      raise SyntaxError.  test_compiler passes now on WinXP, at least in a
      release-build non-O run.
      0955f297
    • Tim Peters's avatar
      2a5f656d
    • Tim Peters's avatar
      In verbose mode, display the name of each file before trying to compile · b6ecc165
      Tim Peters authored
      it.  Else when this fails, there's no way to tell which file it was
      chewing on.
      b6ecc165
    • Tim Peters's avatar
      Brief xrange news. · 83b57355
      Tim Peters authored
      83b57355
    • Tim Peters's avatar
      Bug 1003935: xrange overflows · feec4533
      Tim Peters authored
      Added XXX comment about why the undocumented PyRange_New() API function
      is too broken to be worth the considerable pain of repairing.
      
      Changed range_new() to stop using PyRange_New().  This fixes a variety
      of bogus errors.  Nothing in the core uses PyRange_New() now.
      
      Documented that xrange() is intended to be simple and fast, and that
      CPython restricts its arguments, and length of its result sequence, to
      native C longs.
      
      Added some tests that failed before the patch, and repaired a test that
      relied on a bogus OverflowError getting raised.
      feec4533
    • Tim Peters's avatar
      Trimmed trailing whitespace. · d976ab7c
      Tim Peters authored
      d976ab7c
    • Tim Peters's avatar
      Get rid of the ignore_imports argument to DocTestFinder.find(). · f3f57473
      Tim Peters authored
      This got slammed in when find() was fixed to stop grabbing doctests
      from modules imported *by* the module being tested.  Such tests cannot
      be expected to succeed, since they'll be run with the current module's
      globals.  Dozens of Zope3 doctests were failing because of that.
      
      It wasn't clear why ignore_imports got added then.  Maybe it's because
      some existing tests failed when the change was made.  Whatever, it's
      a Bad Idea so it's gone now.
      
      The only use of it was exceedingly obscure, in test_doctest's "Duplicate
      Removal" test.  It was "needed" there because, as an artifact of running
      a doctest inside a doctest, the func_globals of functions compiled in
      the second-level doctest don't match the module globals, and so the
      test-finder believed these functions were from a foreign module and
      skipped them.  But that took a long time to figure out, and I actually
      understand some of this stuff <0.9 wink>.
      
      That problem was resolved by moving the source code for the second-level
      doctest into an actual module (test/doctest_aliases.py).
      
      The only remaining difficulty was that the test for the deprecated
      Tester.rundict() then failed, because the test finder doesn't take
      module=None at face value, trying to guess which module the user really
      intended then.  Its guess wasn't appropriate for what Tester.rundict
      needs when module=None is given to *it*, which is "no, there is no
      module here, and I mean it".  So now passing module=False means exactly
      that.  This is hokey, but ignore_imports=False was really a hack to worm
      around that there was no way to tell the test-finder that module=None
      *sometimes* means what it says.  There was no use case for the combination
      of passing a real module with ignore_imports=False.
      f3f57473
    • Raymond Hettinger's avatar
      * Context.copy() now makes a deepcopy. · 9fce44bc
      Raymond Hettinger authored
      * Facilitate reloads of local thread.
      9fce44bc