(tmpdir)
| 1152 | |
| 1153 | |
| 1154 | def test_pypkgdir(tmpdir): |
| 1155 | pkg = tmpdir.ensure("pkg1", dir=1) |
| 1156 | pkg.ensure("__init__.py") |
| 1157 | pkg.ensure("subdir/__init__.py") |
| 1158 | assert pkg.pypkgpath() == pkg |
| 1159 | assert pkg.join("subdir", "__init__.py").pypkgpath() == pkg |
| 1160 | |
| 1161 | |
| 1162 | def test_pypkgdir_unimportable(tmpdir): |