commit | 2251a3d233f8c57072b5999b13d82ce06f7ecfe4 | [log] [tgz] |
---|---|---|
author | Ezio Melotti <ezio.melotti@gmail.com> | Fri Nov 18 19:01:01 2011 +0200 |
committer | Ezio Melotti <ezio.melotti@gmail.com> | Fri Nov 18 19:01:01 2011 +0200 |
tree | b14f22a71d85e45aa938442fb7c60c50d5ce813e | |
parent | 4a7abe7ca6dae0d029759941762175bfa78bf4af [diff] | |
parent | fabf0275a91aeb84f4bca02906ee6f181abc0344 [diff] |
#13387: merge with 3.2.
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 7340588..45270db 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst
@@ -933,6 +933,8 @@ 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