Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
6ac4240b
Commit
6ac4240b
authored
Apr 15, 2014
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #18566: Clarify unittest setUp, tearDown doc. Patch by Nitika Agarwal.
parent
45278a89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
Doc/library/unittest.rst
Doc/library/unittest.rst
+7
-7
Misc/ACKS
Misc/ACKS
+1
-0
No files found.
Doc/library/unittest.rst
View file @
6ac4240b
...
...
@@ -674,9 +674,9 @@ Test cases
.. method:: setUp()
Method called to prepare the test fixture. This is called immediately
before calling the test method;
any exception raised by this method will
be considered an error rather than a test failure. The default
implementation does nothing.
before calling the test method;
other than :exc:`AssertionError` or :exc:`SkipTest`,
any exception raised by this method will be considered an error rather than
a test failure. The default
implementation does nothing.
.. method:: tearDown()
...
...
@@ -684,10 +684,10 @@ Test cases
Method called immediately after the test method has been called and the
result recorded. This is called even if the test method raised an
exception, so the implementation in subclasses may need to be particularly
careful about checking internal state. Any exception
raised by this
method will be considered an error rather than a test failure. This
method will only be called if the :meth:`setUp` succeeds, regardless of
the outcome of the test method. The default implementation does nothing.
careful about checking internal state. Any exception
, other than :exc:`AssertionError`
or :exc:`SkipTest`, raised by this method will be considered an error rather than a
test failure. This method will only be called if the :meth:`setUp` succeeds,
regardless of
the outcome of the test method. The default implementation does nothing.
.. method:: setUpClass()
...
...
Misc/ACKS
View file @
6ac4240b
...
...
@@ -18,6 +18,7 @@ David Abrahams
Marc Abramowitz
Ron Adam
Ali Afshar
Nitika Agarwal
Jim Ahlstrom
Farhan Ahmad
Matthew Ahrens
...
...
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