MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / test_instanceof_pyobject

Function test_instanceof_pyobject

tests/python/test_objects.py:108–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106
107
108def test_instanceof_pyobject():
109 class MyClass:
110 def __init__(self):
111 self.a = 42
112
113 o = MyClass()
114 assert pm.eval("(obj) => { return obj instanceof Object; }")(o)
115
116
117def test_pyobjects_not_instanceof_string():

Callers

nothing calls this directly

Calls 1

MyClassClass · 0.85

Tested by

no test coverage detected