summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-11-18 19:01:01 +0200
committerEzio Melotti <ezio.melotti@gmail.com>2011-11-18 19:01:01 +0200
commit2251a3d233f8c57072b5999b13d82ce06f7ecfe4 (patch)
treeb14f22a71d85e45aa938442fb7c60c50d5ce813e /Doc
parent4a7abe7ca6dae0d029759941762175bfa78bf4af (diff)
parentfabf0275a91aeb84f4bca02906ee6f181abc0344 (diff)
downloadcpython-git-2251a3d233f8c57072b5999b13d82ce06f7ecfe4.tar.gz
#13387: merge with 3.2.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/unittest.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 7340588d11..45270db55f 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -933,6 +933,8 @@ Test cases
Test that *obj* is (or is not) an instance of *cls* (which can be a
class or a tuple of classes, as supported by :func:`isinstance`).
+ To check for a specific type (without including superclasses) use
+ :func:`assertIs(type(obj), cls) <assertIs>`.
.. versionadded:: 3.2