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 re
|
||||||
import shlex
|
import shlex
|
||||||
from functools import partial
|
from functools import partial
|
||||||
|
@ -256,7 +255,7 @@ def get_testcases(
|
||||||
) -> Set[str]: # basedir here should be task_conf.root / task_conf.path
|
) -> Set[str]: # basedir here should be task_conf.root / task_conf.path
|
||||||
testcases = set()
|
testcases = set()
|
||||||
for testcases_path in (task_root / task_path).parent.glob("**/*.in"):
|
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")
|
logger.warning(f"Testcase {testcases_path} has no corresponding .out file")
|
||||||
continue
|
continue
|
||||||
testcases.add(
|
testcases.add(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user