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
16d06174
Commit
16d06174
authored
Feb 09, 2001
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added debug methods so that, after a problem is found,
we can rerun the tests and catch exceptions witha debugger.
parent
1e717490
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
lib/python/unittest.py
lib/python/unittest.py
+9
-0
No files found.
lib/python/unittest.py
View file @
16d06174
...
...
@@ -185,6 +185,11 @@ class TestCase:
finally
:
result
.
stopTest
(
self
)
def
debug
(
self
):
self
.
setUp
()
self
.
__testMethod
()
self
.
tearDown
()
def
assert_
(
self
,
expr
,
msg
=
None
):
"""Equivalent of built-in 'assert', but is not optimised out when
__debug__ is false.
...
...
@@ -272,6 +277,10 @@ class TestSuite:
test
(
result
)
return
result
def
debug
(
self
):
for
test
in
self
.
_tests
:
test
.
debug
()
class
FunctionTestCase
(
TestCase
):
"""A test case that wraps a test function.
...
...
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