mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
GH-111485: Test the new cases generator (GH-113252)
This commit is contained in:
parent
4a24bf9a13
commit
771903596b
8 changed files with 116 additions and 88 deletions
|
@ -22,8 +22,10 @@ DEFAULT_INPUT = (ROOT / "Python/bytecodes.c").absolute().as_posix()
|
|||
|
||||
|
||||
def root_relative_path(filename: str) -> str:
|
||||
return Path(filename).absolute().relative_to(ROOT).as_posix()
|
||||
|
||||
try:
|
||||
return Path(filename).absolute().relative_to(ROOT).as_posix()
|
||||
except ValueError:
|
||||
return filename
|
||||
|
||||
def write_header(generator: str, sources: list[str], outfile: TextIO) -> None:
|
||||
outfile.write(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue