[Zope3-dev] Big import blocks

Fred L. Drake, Jr. fred@zope.com
Thu, 20 Mar 2003 12:13:16 -0500


Guido van Rossum writes:
 > I agree that the four imports from unitest shouldn't be included in
 > zapi.  OTOH I think that the other dead chickens found in the test
 > modules are representative of code using the Zope 3 API, so I do want
 > to count those.

Are they really?  I'd expect to see more imports from the Zope 3 code
for use from white-box tests, which would increase the number of
imports for those names.  The only way to see if it matters would be
to run the analysis both ways and seeing what the difference would be.

 > Here are the unittest imports:
 > 
 >  166 unittest.makeSuite
 >  162 unittest.TestCase
 >  156 unittest.TestSuite
 >  154 unittest.main

There's one more:

  11 unittest.TextTestRunner


  -Fred

-- 
Fred L. Drake, Jr.  <fred at zope.com>
PythonLabs at Zope Corporation