fix: use logger instead of direct assert
This commit is contained in:
parent
7265411abe
commit
044d0f0d41
|
@ -1,4 +1,3 @@
|
|||
import os
|
||||
import re
|
||||
import shlex
|
||||
from functools import partial
|
||||
|
@ -256,7 +255,7 @@ def get_testcases(
|
|||
) -> Set[str]: # basedir here should be task_conf.root / task_conf.path
|
||||
testcases = set()
|
||||
for testcases_path in (task_root / task_path).parent.glob("**/*.in"):
|
||||
if not os.path.exists(str(testcases_path).removesuffix(".in") + ".out"):
|
||||
if not testcases_path.with_suffix(".out").exists():
|
||||
logger.warning(f"Testcase {testcases_path} has no corresponding .out file")
|
||||
continue
|
||||
testcases.add(
|
||||
|
|
Loading…
Reference in New Issue
Block a user