[Grok-dev] All z3c.testsetup tests in a directory called "tests"

Brandon Craig Rhodes brandon at rhodesmill.org
Fri Jun 6 10:24:27 EDT 2008


Peter, look at these two modules:

> tests.py
> tests/__init__.py

These are two modules with the same name.  The statement "import tests"
could be used to open either of them, if only one of them was there,
but, since they are both there, you are "shadowing" one and "import
tests" will only return the other.  That's why renaming the "tests"
directory out of the way solves your problem, because then you can get
to both.

-- 
Brandon Craig Rhodes   brandon at rhodesmill.org   http://rhodesmill.org/brandon


More information about the Grok-dev mailing list