Hello,
in the PyObject* converter and executor, I use cpyext to get hold of a
PyObject* to send to/receive from the C++ world. That works okay, but it
proves rather hard to test.
I now have a test that does what I want, based on AppTestCpythonExtensionBase,
where pretty much all the heavy lifting is done, saving me tons of work.
What is the recommended way to grab test bases from the test area of another
module? Right now, I'm doing the moderately ugly:
sys.path.append(str(py.path.local(autopath.pypydir).join('module', 'cpyext',
'test')))
from test_cpyext import AppTestCpythonExtensionBase
which works fine, but surely there must be a better way?
Thanks,
Wim
--
[email protected] -- +1 (510) 486 6411 -- www.lavrijsen.net
_______________________________________________
pypy-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-dev