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
469b1f0d
Commit
469b1f0d
authored
Apr 26, 2010
by
Michael Foord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding versionadded to several new functions in unittest documentation.
parent
90e6d040
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
Doc/library/unittest.rst
Doc/library/unittest.rst
+8
-0
No files found.
Doc/library/unittest.rst
View file @
469b1f0d
...
...
@@ -1888,6 +1888,8 @@ handling functionality within test frameworks.
(usually in response to the user pressing control-c) all registered results
have :meth:`~TestResult.stop` called.
.. versionadded:: 3.2
.. function:: registerResult(result)
Register a :class:`TestResult` object for control-c handling. Registering a
...
...
@@ -1898,12 +1900,16 @@ handling functionality within test frameworks.
handling is not enabled, so test frameworks can unconditionally register
all results they create independently of whether or not handling is enabled.
.. versionadded:: 3.2
.. function:: removeResult(result)
Remove a registered result. Once a result has been removed then
:meth:`~TestResult.stop` will no longer be called on that result object in
response to a control-c.
.. versionadded:: 3.2
.. function:: removeHandler(function=None)
When called without arguments this function removes the control-c handler
...
...
@@ -1914,3 +1920,5 @@ handling functionality within test frameworks.
def test_signal_handling(self):
...
.. versionadded:: 3.2
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