Commit 4941c232 authored by Ezio Melotti's avatar Ezio Melotti

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

parent 7d63d29a
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment