Skip to content

Commit b176224

Browse files
committed
fix: using repr for output patterns
1 parent 8e2ab43 commit b176224

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,15 +337,15 @@ def check(
337337
if not re.search(check["stdout_pattern"], output, re.MULTILINE):
338338
return (
339339
False,
340-
f"Output does not match pattern {check['stdout_pattern']}",
340+
f"Output does not match pattern {check['stdout_pattern']!r}",
341341
None,
342342
)
343343

344344
if "stderr_pattern" in check:
345345
if not re.search(check["stderr_pattern"], error, re.MULTILINE):
346346
return (
347347
False,
348-
f"Error output does not match pattern {check['stderr_pattern']}",
348+
f"Error output does not match pattern {check['stderr_pattern']!r}",
349349
None,
350350
)
351351

0 commit comments

Comments
 (0)