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
1c7c7304
Commit
1c7c7304
authored
Feb 06, 2010
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#7864: make deprecation notices a bit clearer.
parent
ce6e4b09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
Doc/library/unittest.rst
Doc/library/unittest.rst
+7
-7
No files found.
Doc/library/unittest.rst
View file @
1c7c7304
...
@@ -681,7 +681,7 @@ Test cases
...
@@ -681,7 +681,7 @@ Test cases
will be *msg* if given, otherwise it will be :const:`None`.
will be *msg* if given, otherwise it will be :const:`None`.
.. deprecated:: 2.7
.. deprecated:: 2.7
:meth:`failUnless`.
:meth:`failUnless`
; use one of the ``assert`` variants
.
.. method:: assertEqual(first, second[, msg])
.. method:: assertEqual(first, second[, msg])
...
@@ -703,7 +703,7 @@ Test cases
...
@@ -703,7 +703,7 @@ Test cases
Added the automatic calling of type specific equality function.
Added the automatic calling of type specific equality function.
.. deprecated:: 2.7
.. deprecated:: 2.7
:meth:`failUnlessEqual`.
:meth:`failUnlessEqual`
; use :meth:`assertEqual`
.
.. method:: assertNotEqual(first, second[, msg])
.. method:: assertNotEqual(first, second[, msg])
...
@@ -717,7 +717,7 @@ Test cases
...
@@ -717,7 +717,7 @@ Test cases
*first* and *second*.
*first* and *second*.
.. deprecated:: 2.7
.. deprecated:: 2.7
:meth:`failIfEqual`.
:meth:`failIfEqual`
; use :meth:`assertNotEqual`
.
.. method:: assertAlmostEqual(first, second[, places[, msg]])
.. method:: assertAlmostEqual(first, second[, places[, msg]])
...
@@ -736,7 +736,7 @@ Test cases
...
@@ -736,7 +736,7 @@ Test cases
Objects that compare equal are automatically almost equal.
Objects that compare equal are automatically almost equal.
.. deprecated:: 2.7
.. deprecated:: 2.7
:meth:`failUnlessAlmostEqual`.
:meth:`failUnlessAlmostEqual`
; use :meth:`assertAlmostEqual`
.
.. method:: assertNotAlmostEqual(first, second[, places[, msg]])
.. method:: assertNotAlmostEqual(first, second[, places[, msg]])
...
@@ -755,7 +755,7 @@ Test cases
...
@@ -755,7 +755,7 @@ Test cases
Objects that compare equal automatically fail.
Objects that compare equal automatically fail.
.. deprecated:: 2.7
.. deprecated:: 2.7
:meth:`failIfAlmostEqual`.
:meth:`failIfAlmostEqual`
; use :meth:`assertNotAlmostEqual`
.
.. method:: assertGreater(first, second, msg=None)
.. method:: assertGreater(first, second, msg=None)
...
@@ -911,7 +911,7 @@ Test cases
...
@@ -911,7 +911,7 @@ Test cases
Added the ability to use :meth:`assertRaises` as a context manager.
Added the ability to use :meth:`assertRaises` as a context manager.
.. deprecated:: 2.7
.. deprecated:: 2.7
:meth:`failUnlessRaises`.
:meth:`failUnlessRaises`
; use :meth:`assertRaises`
.
.. method:: assertRaisesRegexp(exception, regexp[, callable, ...])
.. method:: assertRaisesRegexp(exception, regexp[, callable, ...])
...
@@ -988,7 +988,7 @@ Test cases
...
@@ -988,7 +988,7 @@ Test cases
for the error message.
for the error message.
.. deprecated:: 2.7
.. deprecated:: 2.7
:meth:`failIf`.
:meth:`failIf`
; use :meth:`assertFalse`
.
.. method:: fail([msg])
.. method:: fail([msg])
...
...
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