class documentation
class TestNamespaces: (source)
Undocumented
Method | test |
Installing two packages sharing the same namespace, one installed to a site dir and the other installed just to a path on PYTHONPATH should leave the namespace in tact and both packages reachable by import. |
Method | test |
Installing a namespace packages but also having it in the current working directory, only one version should take precedence. |
Method | test |
Installing one namespace package and also have another in the same namespace in the current working directory, both of them must be importable. |
Method | test |
Ensure that a namespace package doesn't break on import of pkg_resources. |
@pytest.mark.skipif( (sys.version_info < (3, 5)), reason='Requires importlib.util.module_from_spec')
def test_mixed_site_and_non_site(self, tmpdir): (source) ¶
def test_mixed_site_and_non_site(self, tmpdir): (source) ¶
Installing two packages sharing the same namespace, one installed to a site dir and the other installed just to a path on PYTHONPATH should leave the namespace in tact and both packages reachable by import.
Installing a namespace packages but also having it in the current working directory, only one version should take precedence.