Namespace packages (python 3.3) support
Currently there is a bug (latest py & pytest, python 3.3) with support of new namespace packages. Attached please find an example project. Please unpack it, Add top-level 'foo' dir to your 'PYTHONPATH', then 'cd' to the top-level foo and execute 'py.test -s'.
The bug is that 'foo' is a namespace package (i.e. doesn't have an 'init.py' file) and in this case, pytest loads 'foo.bar.spam' package TWO times, first as 'bar.spam' and secondly as 'foo.bar.spam'.
This happens because py.path.local.LocalPath.pypkgpath explicitly checks for 'init.py' files in packages, which fails for new namespaces semantics.