mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
#13387: add note about checking the exact type in assertIsInstance doc.
This commit is contained in:
parent
7f78ddc3ad
commit
fabf0275a9
1 changed files with 2 additions and 0 deletions
|
@ -929,6 +929,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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue