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

Function test_eval_pyobjects

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

Source from the content-addressed store, hash-verified

3
4
5def test_eval_pyobjects():
6 class MyClass:
7 pass
8
9 o = MyClass()
10 proxy_o = pm.eval("(obj) => { return obj; }")(o)
11 assert o is proxy_o
12
13
14def test_eval_pyobjects_subobjects():

Callers

nothing calls this directly

Calls 1

MyClassClass · 0.85

Tested by

no test coverage detected