[py-dev] Local import

Joan Miller peloko45 at gmail.com
Wed Dec 23 18:09:21 CET 2009


2009/12/23 holger krekel <holger at merlinux.eu>:
> Hum, we could think about adding a call to a new pytest_addsyspath() hook
> that could be put in a conftest.py file (and you could statically add ../lib
> to sys.path in your project) - and also introduce an option "--no-addsyspath" to
> prevent py.test from calling this hook.  This should work and help
> projects to make things properly available during development but also
> run tests against an installed package.
>
> Makes sense to you?
Yes, of course :)


More information about the py-dev mailing list