We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d7d5175 + d28c94e commit 7904709Copy full SHA for 7904709
commit0/harness/get_pytest_ids.py
@@ -1,11 +1,15 @@
1
import bz2
2
from typing import List
3
+import commit0
4
+import os
5
6
7
def main(repo: str, verbose: int) -> List[str]:
8
repo = repo.lower()
9
repo = repo.replace(".", "-")
- with bz2.open(f"commit0/data/test_ids/{repo}.bz2", "rt") as f:
10
+ commit0_path = os.path.dirname(commit0.__file__)
11
+ bz2_file = f"{commit0_path}/data/test_ids/{repo}.bz2"
12
+ with bz2.open(bz2_file, "rt") as f:
13
out = f.read()
14
if verbose:
15
print(out)
0 commit comments