2012/6/4 <wlavrijsen@lbl.gov>
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?

You surely noticed that pypy uses absolute imports everywhere.
Did you try:
    from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
like all test files under pypy/module/cpyext?

--
Amaury Forgeot d'Arc