(self)
| 392 | ) |
| 393 | |
| 394 | def test_prepend_only(self): |
| 395 | fullpath = ["test", "build", "real", "path"] |
| 396 | path = os.path.join(self.directory, *fullpath) |
| 397 | os.makedirs(path) |
| 398 | script = script_helper.make_script(path, "test", "1 / 0") |
| 399 | bc = importlib.util.cache_from_source(script) |
| 400 | prependdir = "/foo" |
| 401 | compileall.compile_dir(path, quiet=True, prependdir=prependdir) |
| 402 | rc, out, err = script_helper.assert_python_failure(bc) |
| 403 | expected_in = os.path.join(prependdir, self.directory, *fullpath) |
| 404 | self.assertIn( |
| 405 | expected_in, |
| 406 | str(err, encoding=sys.getdefaultencoding()) |
| 407 | ) |
| 408 | |
| 409 | def test_strip_and_prepend(self): |
| 410 | fullpath = ["test", "build", "real", "path"] |
nothing calls this directly
no test coverage detected