(self)
| 359 | cwd=script_dir) |
| 360 | |
| 361 | def test_package_error(self): |
| 362 | with os_helper.temp_dir() as script_dir: |
| 363 | pkg_dir = os.path.join(script_dir, 'test_pkg') |
| 364 | make_pkg(pkg_dir) |
| 365 | msg = ("'test_pkg' is a package and cannot " |
| 366 | "be directly executed") |
| 367 | self._check_import_error(["-m", "test_pkg"], msg, cwd=script_dir) |
| 368 | |
| 369 | def test_package_recursion(self): |
| 370 | with os_helper.temp_dir() as script_dir: |
nothing calls this directly
no test coverage detected