Craig Citro, 07.07.2010 09:18:
> So I'm currently trying to write some tests for a subtle issue
> involving resolving imports and cimports. (I think I emailed about
> this a while back.) The particular issue isn't so important right this
> minute -- the only thing that matters is that to test it, I need a
> test with a few layers of directories, with __init__.py files
> sprinkled in several places, and potentially *not* at the root.
> Unfortunately, this doesn't work so well with the current testing
> setup -- at least, as I understand, there's no way to tell it "when
> you try to run this test, also copy along this particular chunk of the
> current directory."

Well, it works for Cython translation time dependencies, as those are 
searched relative to the directory of the main .pyx file. So include tests 
work, as do .pxd file dependencies.

Wrapper tests are supported by a naming convention, i.e. you can write a 
wrapper code file wrapper.pyx and a C file wrapper_whatever.c and the C 
file will be copied to the C compiler working directory automatically.

I'm not quite sure I understand what else you need. Even subdirectories for 
translation time imports should work in the current setup. Could you give 
an example?

Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to