Commit
·
06f1348
1
Parent(s):
6128d20
Fix stdout capturing problem.
Browse files
src/evaluation/testing_utils_codeforces.py
CHANGED
|
@@ -229,6 +229,8 @@ def run_test(code, inputs, outputs, timeout: int = 6000, debug=True, add_extra_i
|
|
| 229 |
new_test = "stdin = sys.stdin\nstdout = sys.stdout\n"
|
| 230 |
new_test += '__name__="__main__"\n'
|
| 231 |
new_test += "def code():\n"
|
|
|
|
|
|
|
| 232 |
for line in code_lines:
|
| 233 |
new_test += line
|
| 234 |
|
|
|
|
| 229 |
new_test = "stdin = sys.stdin\nstdout = sys.stdout\n"
|
| 230 |
new_test += '__name__="__main__"\n'
|
| 231 |
new_test += "def code():\n"
|
| 232 |
+
new_test += "\tstdin = sys.stdin\n\tstdout = sys.stdout\n"
|
| 233 |
+
|
| 234 |
for line in code_lines:
|
| 235 |
new_test += line
|
| 236 |
|