The following test leaks memory:
it('catching JS exceptions propagated through Python', () => {
const fn = PyObject.fromJS(() => {
throw new Error('JS exception');
});
assert.isTrue(fn.callable);
assert.equal(fn.type, 'pymport.js_function');
const py_catch = pymport('python_helpers').get('dont_catch_exception');
assert.throws(() => {
py_catch.call(fn);
}, /Python exception: JS exception/);
});