Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
71a575ad
Commit
71a575ad
authored
Sep 02, 2006
by
Stefan H. Holek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increased frame depth to account for decorator.
parent
b03c0a37
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
lib/python/Testing/ZopeTestCase/zopedoctest/functional.py
lib/python/Testing/ZopeTestCase/zopedoctest/functional.py
+7
-4
No files found.
lib/python/Testing/ZopeTestCase/zopedoctest/functional.py
View file @
71a575ad
...
...
@@ -194,6 +194,7 @@ def http(request_string, handle_errors=True):
return DocResponseWrapper(response, outstream, path, header_output)
def extractLayer(func):
def wrap(*args, **kw):
suite = func(*args, **kw)
...
...
@@ -203,6 +204,7 @@ def extractLayer(func):
return suite
return wrap
class ZopeSuiteFactory:
def __init__(self, *args, **kw):
...
...
@@ -306,26 +308,27 @@ class FunctionalSuiteFactory(ZopeSuiteFactory):
|
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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment