Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f78ddc commit fabf027Copy full SHA for fabf027
1 file changed
Doc/library/unittest.rst
@@ -929,6 +929,8 @@ Test cases
929
930
Test that *obj* is (or is not) an instance of *cls* (which can be a
931
class or a tuple of classes, as supported by :func:`isinstance`).
932
+ To check for a specific type (without including superclasses) use
933
+ :func:`assertIs(type(obj), cls) <assertIs>`.
934
935
.. versionadded:: 3.2
936
0 commit comments