This commit is contained in:
Egor Matveev 2022-06-03 14:59:09 +03:00
parent cef928accd
commit 5e895f239d

View File

@ -37,9 +37,7 @@ class BaseTester:
f"< {filename} {self.command} > output.txt", f"< {filename} {self.command} > output.txt",
timeout=self.solution.task.time_limit / 1000, timeout=self.solution.task.time_limit / 1000,
) )
if code == 1: if code != 0:
raise TestException("ML")
elif code != 0:
raise TestException("RE") raise TestException("RE")
result = ( result = (
open(join(self.path, "output.txt"), "r") open(join(self.path, "output.txt"), "r")