[Zope-Checkins] SVN: Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py Increased frame depth to account for decorator.

Stefan H. Holek stefan at epy.co.at
Sat Sep 2 09:02:36 EDT 2006


Log message for revision 69927:
  Increased frame depth to account for decorator.
  

Changed:
  U   Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py

-=-
Modified: Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py
===================================================================
--- Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py	2006-09-02 05:38:49 UTC (rev 69926)
+++ Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py	2006-09-02 13:02:35 UTC (rev 69927)
@@ -194,6 +194,7 @@
 
     return DocResponseWrapper(response, outstream, path, header_output)
 
+
 def extractLayer(func):
     def wrap(*args, **kw):
         suite = func(*args, **kw)
@@ -203,6 +204,7 @@
         return suite
     return wrap
 
+
 class ZopeSuiteFactory:
 
     def __init__(self, *args, **kw):
@@ -306,26 +308,27 @@
                                        | doctest.REPORT_NDIFF
                                        | doctest.NORMALIZE_WHITESPACE)
 
+
 @extractLayer
 def ZopeDocTestSuite(module=None, **kw):
-    module = doctest._normalize_module(module)
+    module = doctest._normalize_module(module, depth=3)
     return ZopeSuiteFactory(module, **kw).doctestsuite()
 
 @extractLayer
 def ZopeDocFileSuite(*paths, **kw):
     if kw.get('module_relative', True):
-        kw['package'] = doctest._normalize_module(kw.get('package'))
+        kw['package'] = doctest._normalize_module(kw.get('package'), depth=3)
     return ZopeSuiteFactory(*paths, **kw).docfilesuite()
 
 @extractLayer
 def FunctionalDocTestSuite(module=None, **kw):
-    module = doctest._normalize_module(module)
+    module = doctest._normalize_module(module, depth=3)
     return FunctionalSuiteFactory(module, **kw).doctestsuite()
 
 @extractLayer
 def FunctionalDocFileSuite(*paths, **kw):
     if kw.get('module_relative', True):
-        kw['package'] = doctest._normalize_module(kw.get('package'))
+        kw['package'] = doctest._normalize_module(kw.get('package'), depth=3)
     return FunctionalSuiteFactory(*paths, **kw).docfilesuite()
 
 



More information about the Zope-Checkins mailing list