[Zope3-checkins] SVN: Zope3/trunk/src/zope/testing/doctestunit.py -
	fix typo in warning message
    Fred L. Drake, Jr. 
    fred at zope.com
       
    Thu Jul 22 15:36:43 EDT 2004
    
    
  
Log message for revision 26686:
  - fix typo in warning message
  - make DocFileSuite guess the package properly
  
Changed:
  U   Zope3/trunk/src/zope/testing/doctestunit.py
-=-
Modified: Zope3/trunk/src/zope/testing/doctestunit.py
===================================================================
--- Zope3/trunk/src/zope/testing/doctestunit.py	2004-07-22 18:59:22 UTC (rev 26685)
+++ Zope3/trunk/src/zope/testing/doctestunit.py	2004-07-22 19:36:43 UTC (rev 26686)
@@ -144,12 +144,14 @@
     # BBB temporarily support passing package as first argument
     if not isinstance(paths[0], basestring):
         import warnings
-        warnings.warn("DocFileSuite package arguemnt must be provided as a "
+        warnings.warn("DocFileSuite package argument must be provided as a "
                       "keyword argument",
                       DeprecationWarning, 2)
         kw = kw.copy()
         kw['package'] = paths[0]
         paths = paths[1:]
+    else:
+        kw['package'] = _normalizeModule(kw.get('package'))
     
     suite = unittest.TestSuite()
     for path in paths:
    
    
More information about the Zope3-Checkins
mailing list