File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ def _is_class_property(o):
170
170
Returns:
171
171
[type]: [description]
172
172
"""
173
- return isinstance (o , property ) or (type (o ) == _getset_descriptor )
173
+ return isinstance (o , property ) or (type (o ) is _getset_descriptor )
174
174
175
175
176
176
def _is_class_method (o ):
Original file line number Diff line number Diff line change @@ -275,4 +275,4 @@ def test_cpython_api_SyclEvent_Make():
275
275
make_e_fn = callable_maker (make_e_fn_ptr )
276
276
277
277
ev2 = make_e_fn (ev .addressof_ref ())
278
- assert type (ev ) == type (ev2 )
278
+ assert type (ev ) is type (ev2 )
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ def test_pickling(memory_ctor):
169
169
mobj .copy_from_host (host_src_obj )
170
170
171
171
mobj_reconstructed = pickle .loads (pickle .dumps (mobj ))
172
- assert type (mobj ) == type (
172
+ assert type (mobj ) is type (
173
173
mobj_reconstructed
174
174
), "Pickling should preserve type"
175
175
assert (
You can’t perform that action at this time.
0 commit comments