#13387: add note about checking the exact type in assertIsInstance doc.

This commit is contained in:
Ezio Melotti 2011-11-18 18:59:36 +02:00
parent 169ed5946a
commit aa512f05a4
1 changed files with 2 additions and 0 deletions

View File

@ -895,6 +895,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:: 2.7