Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
9fc571359af9320fddbe4aa2710a767f168c1707
/
.
/
Lib
/
unittest
/
test
/
testmock
/
support.py
blob: 49986d65dc47af6fef681e9662a5ceee7b7696b7 [
file
] [
log
] [
blame
]
target
=
{
'foo'
:
'FOO'
}
def
is_instance
(
obj
,
klass
):
"""Version of is_instance that doesn't access __class__"""
return
issubclass
(
type
(
obj
),
klass
)
class
SomeClass
(
object
):
class_attribute
=
None
def
wibble
(
self
):
pass
class
X
(
object
):
pass