# grep 'assertIsInstance' Lib/test/*py Lib/test/datetimetester.py: self.assertIsInstance(ne, tzinfo) Lib/test/datetimetester.py: self.assertIsInstance(fo, tzinfo) Lib/test/datetimetester.py: self.assertIsInstance(orig, tzinfo) Lib/test/datetimetester.py: self.assertIsInstance(derived, tzinfo) Lib/test/datetimetester.py: self.assertIsInstance(timezone.utc, tzinfo) Lib/test/datetimetester.py: self.assertIsInstance(self.EST, tzinfo) Lib/test/datetimetester.py: self.assertIsInstance(timedelta.min, timedelta) Lib/test/datetimetester.py: self.assertIsInstance(timedelta.max, timedelta) Lib/test/datetimetester.py: self.assertIsInstance(timedelta.resolution, timedelta) Lib/test/datetimetester.py: self.assertIsInstance(self.theclass.min, expected_class) Lib/test/datetimetester.py: self.assertIsInstance(self.theclass.max, expected_class) Lib/test/datetimetester.py: self.assertIsInstance(self.theclass.resolution, timedelta) Lib/test/datetimetester.py: self.assertIsInstance(self.theclass.min, self.theclass) Lib/test/datetimetester.py: self.assertIsInstance(self.theclass.max, self.theclass) Lib/test/datetimetester.py: self.assertIsInstance(self.theclass.resolution, timedelta) Lib/test/datetimetester.py: self.assertIsInstance(derived.tzinfo, PicklableFixedOffset) Lib/test/datetimetester.py: self.assertIsInstance(derived.tzinfo, PicklableFixedOffset) Lib/test/mapping_tests.py: self.assertIsInstance(ud, collections.UserDict) Lib/test/mapping_tests.py: self.assertIsInstance(d.copy(), d.__class__) Lib/test/mapping_tests.py: self.assertIsInstance(ud, collections.UserDict) Lib/test/pickletester.py: self.assertIsInstance(s, bytes_types) Lib/test/test_abc.py: self.assertIsInstance(b, A) Lib/test/test_abc.py: self.assertIsInstance(b, (A,)) Lib/test/test_abc.py: self.assertIsInstance(c, A) Lib/test/test_abc.py: self.assertIsInstance(c, (A,)) Lib/test/test_abc.py: self.assertIsInstance(b, A) Lib/test/test_abc.py: self.assertIsInstance(b, (A,)) Lib/test/test_abc.py: self.assertIsInstance(c, A) Lib/test/test_abc.py: self.assertIsInstance(c, (A,)) Lib/test/test_abc.py: self.assertIsInstance(42, A) Lib/test/test_abc.py: self.assertIsInstance(42, (A,)) Lib/test/test_abc.py: self.assertIsInstance("", A) Lib/test/test_abc.py: self.assertIsInstance("", (A,)) Lib/test/test_abc.py: self.assertIsInstance(42, A) Lib/test/test_abc.py: self.assertIsInstance(42, (A,)) Lib/test/test_array.py: self.assertIsInstance(bi, tuple) Lib/test/test_array.py: self.assertIsInstance(bi[0], int) Lib/test/test_array.py: self.assertIsInstance(bi[1], int) Lib/test/test_augassign.py: self.assertIsInstance(x, aug_test) Lib/test/test_augassign.py: self.assertIsInstance(x, aug_test3) Lib/test/test_binascii.py: self.assertIsInstance(res, bytes) Lib/test/test_binascii.py: self.assertIsInstance(a, bytes) Lib/test/test_binascii.py: self.assertIsInstance(binascii.crc_hqx(raw, 0), int) Lib/test/test_binascii.py: self.assertIsInstance(binascii.crc32(raw), int) Lib/test/test_builtin.py: self.assertIsInstance(res, list) Lib/test/test_builtin.py: self.assertIsInstance(w[0].message, DeprecationWarning) Lib/test/test_bytes.py: self.assertIsInstance(self.subclass2test(), self.type2test) Lib/test/test_codecs.py: self.assertIsInstance(state[1], int) Lib/test/test_collections.py: self.assertIsInstance(p, tuple) Lib/test/test_collections.py: self.assertIsInstance(C(), abc) Lib/test/test_collections.py: self.assertIsInstance(x, Hashable) Lib/test/test_collections.py: self.assertIsInstance(x, Iterable) Lib/test/test_collections.py: self.assertIsInstance(x, Iterator) Lib/test/test_collections.py: self.assertIsInstance(x, Sized) Lib/test/test_collections.py: self.assertIsInstance(x, Container) Lib/test/test_collections.py: self.assertIsInstance(x, Callable) Lib/test/test_collections.py: self.assertIsInstance(sample(), Set) Lib/test/test_collections.py: self.assertIsInstance(set(), MutableSet) Lib/test/test_collections.py: self.assertIsInstance(sample(), Mapping) Lib/test/test_collections.py: self.assertIsInstance(sample(), MutableMapping) Lib/test/test_collections.py: self.assertIsInstance(mymap.keys(), Set) Lib/test/test_collections.py: self.assertIsInstance(mymap.keys(), KeysView) Lib/test/test_collections.py: self.assertIsInstance(mymap.items(), Set) Lib/test/test_collections.py: self.assertIsInstance(mymap.items(), ItemsView) Lib/test/test_collections.py: self.assertIsInstance(z, set) Lib/test/test_collections.py: self.assertIsInstance(z, set) Lib/test/test_collections.py: self.assertIsInstance(sample(), Sequence) Lib/test/test_collections.py: self.assertIsInstance(range(10), Sequence) Lib/test/test_collections.py: self.assertIsInstance(sample(), ByteString) Lib/test/test_collections.py: self.assertIsInstance(sample(), MutableSequence) Lib/test/test_collections.py: self.assertIsInstance(c, dict) Lib/test/test_collections.py: self.assertIsInstance(c, Mapping) Lib/test/test_collections.py: self.assertIsInstance(OrderedDict(), MutableMapping) Lib/test/test_compile.py: self.assertIsInstance(eval("%s" % (-sys.maxsize - 1)), int) Lib/test/test_compile.py: self.assertIsInstance(eval("%s" % (-sys.maxsize - 2)), int) Lib/test/test_compile.py: self.assertIsInstance(variable, int) Lib/test/test_decimal.py: self.assertIsInstance(d, Decimal) Lib/test/test_decimal.py: self.assertIsInstance(Decimal(0), numbers.Number) Lib/test/test_descr.py: self.assertIsInstance({}, dict) Lib/test/test_descr.py: self.assertIsInstance(d, dict) Lib/test/test_descr.py: self.assertIsInstance(key, type(0)) Lib/test/test_descr.py: self.assertIsInstance(u, MyABC) Lib/test/test_descr.py: self.assertIsInstance(raw, property) Lib/test/test_descr.py: self.assertIsInstance(d, D) Lib/test/test_descr.py: self.assertIsInstance(d, D) Lib/test/test_descr.py: self.assertIsInstance(a, C) # Baseline Lib/test/test_descr.py: self.assertIsInstance(pa, C) # Test Lib/test/test_descr.py: self.assertIsInstance(a, C) # Baseline Lib/test/test_descr.py: self.assertIsInstance(pa, C) # Test Lib/test/test_descr.py: self.assertIsInstance(a, C) # Baseline Lib/test/test_descr.py: self.assertIsInstance(pa, C) # Test Lib/test/test_descr.py: self.assertIsInstance(a, C) # Baseline Lib/test/test_descr.py: self.assertIsInstance(pa, C) # Test Lib/test/test_dict.py: self.assertIsInstance(dictlike.fromkeys('a'), dictlike) Lib/test/test_dict.py: self.assertIsInstance(dictlike().fromkeys('a'), dictlike) Lib/test/test_dict.py: self.assertIsInstance(ud, collections.UserDict) Lib/test/test_dictviews.py: self.assertIsInstance(repr(d), str) Lib/test/test_dictviews.py: self.assertIsInstance(r, str) Lib/test/test_dictviews.py: self.assertIsInstance(r, str) Lib/test/test_dictviews.py: self.assertIsInstance(r, str) Lib/test/test_dummy_thread.py: self.assertIsInstance(_thread.get_ident(), int, Lib/test/test_dummy_thread.py: self.assertIsInstance(_thread.allocate_lock(), _thread.LockType, Lib/test/test_exceptions.py: self.assertIsInstance(e, BaseException) Lib/test/test_exceptions.py: self.assertIsInstance(e, IndexError) Lib/test/test_exceptions.py: self.assertIsInstance(e, MyException) Lib/test/test_exceptions.py: self.assertIsInstance(sys.exc_info()[1], RuntimeError) Lib/test/test_ftplib.py: self.assertIsInstance(name, str) Lib/test/test_ftplib.py: self.assertIsInstance(facts, dict) Lib/test/test_ftplib.py: self.assertIsInstance(self.client.sock, ssl.SSLSocket) Lib/test/test_ftplib.py: self.assertIsInstance(sock, ssl.SSLSocket) Lib/test/test_ftplib.py: self.assertIsInstance(self.client.sock, ssl.SSLSocket) Lib/test/test_ftplib.py: self.assertIsInstance(self.client.sock, ssl.SSLSocket) Lib/test/test_ftplib.py: self.assertIsInstance(sock, ssl.SSLSocket) Lib/test/test_ftplib.py: self.assertIsInstance(self.client.sock, ssl.SSLSocket) Lib/test/test_funcattrs.py: self.assertIsInstance(c, tuple) Lib/test/test_future.py: self.assertIsInstance(scope["x"], str) Lib/test/test_future5.py: self.assertIsInstance("", str) Lib/test/test_genericpath.py: self.assertIsInstance(self.pathmodule.abspath(path), bytes) Lib/test/test_genericpath.py: self.assertIsInstance(self.pathmodule.normpath(path), str) Lib/test/test_genericpath.py: self.assertIsInstance(abspath(path), str) Lib/test/test_genericpath.py: self.assertIsInstance(abspath(path), str) Lib/test/test_grp.py: self.assertIsInstance(value.gr_name, str) Lib/test/test_grp.py: self.assertIsInstance(value.gr_passwd, str) Lib/test/test_grp.py: self.assertIsInstance(value.gr_gid, int) Lib/test/test_grp.py: self.assertIsInstance(value.gr_mem, list) Lib/test/test_hash.py: self.assertIsInstance(obj, Hashable) Lib/test/test_imaplib.py: self.assertIsInstance(cap, str) Lib/test/test_imaplib.py: self.assertIsInstance(cap, str) Lib/test/test_imaplib.py: self.assertIsInstance(cap, str) Lib/test/test_int.py: self.assertIsInstance(x, int) Lib/test/test_int.py: self.assertIsInstance(x, int) Lib/test/test_int.py: self.assertIsInstance(x, int) Lib/test/test_int.py: self.assertIsInstance(x, int) Lib/test/test_io.py: self.assertIsInstance(self.IOBase, abc.ABCMeta) Lib/test/test_io.py: self.assertIsInstance(self.RawIOBase, abc.ABCMeta) Lib/test/test_io.py: self.assertIsInstance(self.BufferedIOBase, abc.ABCMeta) Lib/test/test_io.py: self.assertIsInstance(self.TextIOBase, abc.ABCMeta) Lib/test/test_io.py: self.assertIsInstance(f, abcmodule.IOBase) Lib/test/test_io.py: self.assertIsInstance(f, abcmodule.RawIOBase) Lib/test/test_io.py: self.assertIsInstance(f, abcmodule.IOBase) Lib/test/test_io.py: self.assertIsInstance(f, abcmodule.BufferedIOBase) Lib/test/test_io.py: self.assertIsInstance(f, abcmodule.IOBase) Lib/test/test_io.py: self.assertIsInstance(f, abcmodule.TextIOBase) Lib/test/test_logging.py: self.assertIsInstance(logger.handlers[0], logging.NullHandler) Lib/test/test_logging.py: self.assertIsInstance(handler, logging.StreamHandler) Lib/test/test_logging.py: self.assertIsInstance(formatter._style, logging.PercentStyle) Lib/test/test_logging.py: self.assertIsInstance(handler, logging.FileHandler) Lib/test/test_logging.py: self.assertIsInstance(handler, logging.StreamHandler) Lib/test/test_logging.py: self.assertIsInstance(formatter._style, logging.StringTemplateStyle) Lib/test/test_mailbox.py: self.assertIsInstance(msg, email.message.Message) Lib/test/test_mailbox.py: self.assertIsInstance(msg, mailbox.Message) Lib/test/test_mailbox.py: self.assertIsInstance(part, email.message.Message) Lib/test/test_mailbox.py: self.assertIsInstance(msg0, mailbox.Message) Lib/test/test_mailbox.py: self.assertIsInstance(msg_returned, mailbox.MaildirMessage) Lib/test/test_mailbox.py: self.assertIsInstance(msg2, FakeMessage) Lib/test/test_mailbox.py: self.assertIsInstance(msg, email.message.Message) Lib/test/test_mailbox.py: self.assertIsInstance(msg, mailbox.Message) Lib/test/test_mailbox.py: self.assertIsInstance(msg, self._factory) Lib/test/test_mailcap.py: self.assertIsInstance(mcfiles, list) Lib/test/test_mailcap.py: self.assertIsInstance(m, str) Lib/test/test_mailcap.py: self.assertIsInstance(caps, dict) Lib/test/test_mailcap.py: self.assertIsInstance(k, str) Lib/test/test_mailcap.py: self.assertIsInstance(v, list) Lib/test/test_mailcap.py: self.assertIsInstance(e, dict) Lib/test/test_memoryio.py: self.assertIsInstance(state[1], int) Lib/test/test_memoryio.py: self.assertIsInstance(state[0], str) Lib/test/test_memoryio.py: self.assertIsInstance(state[1], str) Lib/test/test_memoryio.py: self.assertIsInstance(state[2], int) Lib/test/test_memoryview.py: self.assertIsInstance(m[0], bytes) Lib/test/test_memoryview.py: self.assertIsInstance(b, bytes) Lib/test/test_mmap.py: self.assertIsInstance(exc.exception, IOError, Lib/test/test_multiprocessing.py: self.assertIsInstance(authkey, bytes) Lib/test/test_multiprocessing.py: self.assertIsInstance(sentinel, int) Lib/test/test_multiprocessing.py: self.assertIsInstance(scratchpad[0], KeyError) Lib/test/test_multiprocessing.py: self.assertIsInstance(scratchpad[0], MaybeEncodingError) Lib/test/test_nntplib.py: self.assertIsInstance(groups[0], GroupInfo) Lib/test/test_nntplib.py: self.assertIsInstance(groups[0].group, str) Lib/test/test_nntplib.py: self.assertIsInstance(desc, str) Lib/test/test_nntplib.py: self.assertIsInstance(descs, dict) Lib/test/test_nntplib.py: self.assertIsInstance(count, int) Lib/test/test_nntplib.py: self.assertIsInstance(first, int) Lib/test/test_nntplib.py: self.assertIsInstance(last, int) Lib/test/test_nntplib.py: self.assertIsInstance(date, datetime.datetime) Lib/test/test_nntplib.py: self.assertIsInstance(art_dict, dict) Lib/test/test_nntplib.py: self.assertIsInstance(v, (str, type(None))) Lib/test/test_nntplib.py: self.assertIsInstance(article, nntplib.ArticleInfo) Lib/test/test_nntplib.py: self.assertIsInstance(line, bytes) Lib/test/test_nntplib.py: self.assertIsInstance(caps_list, (list, tuple)) Lib/test/test_nntplib.py: self.assertIsInstance(self.server.sock, ssl.SSLSocket) Lib/test/test_opcodes.py: self.assertIsInstance(v, DClass) Lib/test/test_optparse.py: self.assertIsInstance(opt1, Option) Lib/test/test_os.py: self.assertIsInstance(init_xattr, list) Lib/test/test_parser.py: self.assertIsInstance(scope["x"], str) Lib/test/test_poplib.py: self.assertIsInstance(self.client.sock, ssl.SSLSocket) Lib/test/test_posix.py: self.assertIsInstance(fd, int) Lib/test/test_posix.py: self.assertIsInstance(old_mask, int) Lib/test/test_posix.py: self.assertIsInstance(lo, int) Lib/test/test_posix.py: self.assertIsInstance(hi, int) Lib/test/test_posix.py: self.assertIsInstance(param.sched_priority, int) Lib/test/test_posix.py: self.assertIsInstance(interval, float) Lib/test/test_posix.py: self.assertIsInstance(mask, posix.cpu_set) Lib/test/test_posixpath.py: self.assertIsInstance(posixpath.expanduser("~/"), str) Lib/test/test_posixpath.py: self.assertIsInstance(posixpath.expanduser(b"~/"), bytes) Lib/test/test_posixpath.py: self.assertIsInstance(posixpath.expanduser("~root/"), str) Lib/test/test_posixpath.py: self.assertIsInstance(posixpath.expanduser("~foo/"), str) Lib/test/test_posixpath.py: self.assertIsInstance(posixpath.expanduser(b"~root/"), bytes) Lib/test/test_posixpath.py: self.assertIsInstance(posixpath.expanduser(b"~foo/"), bytes) Lib/test/test_pwd.py: self.assertIsInstance(e.pw_name, str) Lib/test/test_pwd.py: self.assertIsInstance(e.pw_passwd, str) Lib/test/test_pwd.py: self.assertIsInstance(e.pw_uid, int) Lib/test/test_pwd.py: self.assertIsInstance(e.pw_gid, int) Lib/test/test_pwd.py: self.assertIsInstance(e.pw_gecos, str) Lib/test/test_pwd.py: self.assertIsInstance(e.pw_dir, str) Lib/test/test_pwd.py: self.assertIsInstance(e.pw_shell, str) Lib/test/test_pyclbr.py: self.assertIsInstance(py_item, (FunctionType, BuiltinFunctionType)) Lib/test/test_pyclbr.py: self.assertIsInstance(py_item, type) Lib/test/test_raise.py: self.assertIsInstance(e.__cause__, KeyError) Lib/test/test_raise.py: self.assertIsInstance(e.__traceback__, types.TracebackType) Lib/test/test_raise.py: self.assertIsInstance(e.__context__, context) Lib/test/test_raise.py: self.assertIsInstance(e.__context__, context) Lib/test/test_raise.py: self.assertIsInstance(e.__context__, ZeroDivisionError) Lib/test/test_raise.py: self.assertIsInstance(e.__context__, ZeroDivisionError) Lib/test/test_raise.py: self.assertIsInstance(e.__context__, ZeroDivisionError) Lib/test/test_raise.py: self.assertIsInstance(e.__context__, ZeroDivisionError) Lib/test/test_raise.py: self.assertIsInstance(e.__context__, ValueError) Lib/test/test_raise.py: self.assertIsInstance(e.__context__, AttributeError) Lib/test/test_socket.py: self.assertIsInstance(index, int) Lib/test/test_socket.py: self.assertIsInstance(name, str) Lib/test/test_socket.py: self.assertIsInstance(_index, int) Lib/test/test_socket.py: self.assertIsInstance(_name, str) Lib/test/test_socket.py: self.assertIsInstance(sock, socket.socket) Lib/test/test_socket.py: self.assertIsInstance(ancdata, list) Lib/test/test_socket.py: self.assertIsInstance(item, tuple) Lib/test/test_socket.py: self.assertIsInstance(cmsg_data, bytes) Lib/test/test_socket.py: self.assertIsInstance(e.errno, int) Lib/test/test_socket.py: self.assertIsInstance(ancdata[0], tuple) Lib/test/test_socket.py: self.assertIsInstance(cmsg_data, bytes) Lib/test/test_socket.py: self.assertIsInstance(e.errno, int) Lib/test/test_socket.py: self.assertIsInstance(sock, socket.socket) Lib/test/test_ssl.py: self.assertIsInstance(n, int) Lib/test/test_ssl.py: self.assertIsInstance(t, tuple) Lib/test/test_ssl.py: self.assertIsInstance(s, str) Lib/test/test_structseq.py: self.assertIsInstance(t, tuple) Lib/test/test_support.py: self.assertIsInstance(support.python_is_optimized(), bool) Lib/test/test_sys.py: self.assertIsInstance(sys.getdefaultencoding(), str) Lib/test/test_sys.py: self.assertIsInstance(v[0], int) Lib/test/test_sys.py: self.assertIsInstance(v[1], int) Lib/test/test_sys.py: self.assertIsInstance(v[2], int) Lib/test/test_sys.py: self.assertIsInstance(v[3], int) Lib/test/test_sys.py: self.assertIsInstance(v[4], str) Lib/test/test_sys.py: self.assertIsInstance(v.major, int) Lib/test/test_sys.py: self.assertIsInstance(v.minor, int) Lib/test/test_sys.py: self.assertIsInstance(v.build, int) Lib/test/test_sys.py: self.assertIsInstance(v.platform, int) Lib/test/test_sys.py: self.assertIsInstance(v.service_pack, str) Lib/test/test_sys.py: self.assertIsInstance(v.service_pack_minor, int) Lib/test/test_sys.py: self.assertIsInstance(v.service_pack_major, int) Lib/test/test_sys.py: self.assertIsInstance(v.suite_mask, int) Lib/test/test_sys.py: self.assertIsInstance(v.product_type, int) Lib/test/test_sys.py: self.assertIsInstance(sys.gettotalrefcount(), int) Lib/test/test_sys.py: self.assertIsInstance(sys.api_version, int) Lib/test/test_sys.py: self.assertIsInstance(sys.argv, list) Lib/test/test_sys.py: self.assertIsInstance(sys.builtin_module_names, tuple) Lib/test/test_sys.py: self.assertIsInstance(sys.copyright, str) Lib/test/test_sys.py: self.assertIsInstance(sys.exec_prefix, str) Lib/test/test_sys.py: self.assertIsInstance(sys.executable, str) Lib/test/test_sys.py: self.assertIsInstance(sys.hexversion, int) Lib/test/test_sys.py: self.assertIsInstance(sys.hash_info.inf, int) Lib/test/test_sys.py: self.assertIsInstance(sys.hash_info.nan, int) Lib/test/test_sys.py: self.assertIsInstance(sys.hash_info.imag, int) Lib/test/test_sys.py: self.assertIsInstance(sys.maxsize, int) Lib/test/test_sys.py: self.assertIsInstance(sys.maxunicode, int) Lib/test/test_sys.py: self.assertIsInstance(sys.platform, str) Lib/test/test_sys.py: self.assertIsInstance(sys.prefix, str) Lib/test/test_sys.py: self.assertIsInstance(sys.version, str) Lib/test/test_sys.py: self.assertIsInstance(vi[:], tuple) Lib/test/test_sys.py: self.assertIsInstance(vi[0], int) Lib/test/test_sys.py: self.assertIsInstance(vi[1], int) Lib/test/test_sys.py: self.assertIsInstance(vi[2], int) Lib/test/test_sys.py: self.assertIsInstance(vi[4], int) Lib/test/test_sys.py: self.assertIsInstance(vi.major, int) Lib/test/test_sys.py: self.assertIsInstance(vi.minor, int) Lib/test/test_sys.py: self.assertIsInstance(vi.micro, int) Lib/test/test_sys.py: self.assertIsInstance(vi.serial, int) Lib/test/test_sys.py: self.assertIsInstance(sys.float_repr_style, str) Lib/test/test_sys.py: self.assertIsInstance(sys.abiflags, str) Lib/test/test_sysconfig.py: self.assertIsInstance(cvars, dict) Lib/test/test_tarfile.py: self.assertIsInstance(exc.exception, IOError, Lib/test/test_tempfile.py: self.assertIsInstance(c, str) Lib/test/test_tempfile.py: self.assertIsInstance(obj, tempfile._RandomNameSequence) Lib/test/test_tempfile.py: self.assertIsInstance(p, str) Lib/test/test_threading.py: self.assertIsInstance(threading._active[tid], threading._DummyThread) Lib/test/test_types.py: self.assertIsInstance(x + 1, int, Lib/test/test_types.py: self.assertIsInstance(-x - 1, int, Lib/test/test_types.py: self.assertIsInstance(-x - 2, int, Lib/test/test_urllib.py: self.assertIsInstance(file_num, int, "fileno() did not return an int") Lib/test/test_urllib.py: self.assertIsInstance(self.returned_obj.info(), email.message.Message) Lib/test/test_urllib.py: self.assertIsInstance(result[1], email.message.Message, Lib/test/test_urllib.py: self.assertIsInstance(count, int) Lib/test/test_urllib.py: self.assertIsInstance(block_size, int) Lib/test/test_urllib.py: self.assertIsInstance(total_size, int) Lib/test/test_urllib.py: self.assertIsInstance(urllib.request.thishost(), tuple) Lib/test/test_urllib2.py: self.assertIsInstance(args[0], Request) Lib/test/test_urllib2.py: self.assertIsInstance(args[0], Request) Lib/test/test_urllib2_localnet.py: self.assertIsInstance(info_obj, email.message.Message, Lib/test/test_urllib2net.py: self.assertIsInstance(err, expected_err, msg) Lib/test/test_urllibnet.py: self.assertIsInstance(open_url.readline(), bytes, Lib/test/test_urllibnet.py: self.assertIsInstance(open_url.readlines(), list, Lib/test/test_urllibnet.py: self.assertIsInstance(info_obj, email.message.Message, Lib/test/test_urllibnet.py: self.assertIsInstance(info, email.message.Message, Lib/test/test_userdict.py: self.assertIsInstance(u1.fromkeys('one two'.split()), collections.UserDict) Lib/test/test_userdict.py: self.assertIsInstance(u2.fromkeys('one two'.split()), collections.UserDict) Lib/test/test_with.py: self.assertIsInstance(mock_manager.exit_args[1], exc_type) Lib/test/test_wsgiref.py: self.assertIsInstance(env[key], StringIO) Lib/test/test_wsgiref.py: self.assertIsInstance(env[key],BytesIO) Lib/test/test_xmlrpc.py: self.assertIsInstance(new_d.value, str) Lib/test/test_xmlrpc.py: self.assertIsInstance(s, str) Lib/test/test_xmlrpc_net.py: self.assertIsInstance(builders, collections.abc.Sequence) Lib/test/test_zipfile.py: self.assertIsInstance(zipfp, zipfile.ZipFile) Lib/test/test_zipfile.py: self.assertIsInstance(zipfp, zipfile.ZipFile) Lib/test/test_zipfile.py: self.assertIsInstance(zf.infolist()[0].filename, str) Lib/test/test_zlib.py: self.assertIsInstance(dco.unconsumed_tail, bytes) Lib/test/test_zlib.py: self.assertIsInstance(dco.unused_data, bytes) Lib/test/test_zlib.py: self.assertIsInstance(decombuf, bytes) Lib/test/test_zlib.py: self.assertIsInstance(comp, bytes)