Commit 726fc1bc authored by Stefan H. Holek's avatar Stefan H. Holek

Merged r69926:69927 from 2.9 branch.

Increased frame depth to account for decorator.
parent 6a0e2615
...@@ -311,27 +311,27 @@ def extractLayer(func): ...@@ -311,27 +311,27 @@ def extractLayer(func):
@extractLayer @extractLayer
def ZopeDocTestSuite(module=None, **kw): def ZopeDocTestSuite(module=None, **kw):
module = doctest._normalize_module(module) module = doctest._normalize_module(module, depth=3)
return ZopeSuiteFactory(module, **kw).doctestsuite() return ZopeSuiteFactory(module, **kw).doctestsuite()
@extractLayer @extractLayer
def ZopeDocFileSuite(*paths, **kw): def ZopeDocFileSuite(*paths, **kw):
if kw.get('module_relative', True): 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() return ZopeSuiteFactory(*paths, **kw).docfilesuite()
@extractLayer @extractLayer
def FunctionalDocTestSuite(module=None, **kw): def FunctionalDocTestSuite(module=None, **kw):
module = doctest._normalize_module(module) module = doctest._normalize_module(module, depth=3)
return FunctionalSuiteFactory(module, **kw).doctestsuite() return FunctionalSuiteFactory(module, **kw).doctestsuite()
@extractLayer @extractLayer
def FunctionalDocFileSuite(*paths, **kw): def FunctionalDocFileSuite(*paths, **kw):
if kw.get('module_relative', True): 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() return FunctionalSuiteFactory(*paths, **kw).docfilesuite()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment