From 54bdc8f564f00f5954f9900bde00b0d4e9e94e27 Mon Sep 17 00:00:00 2001 From: virusdefender Date: Fri, 18 Mar 2016 10:23:22 +0800 Subject: [PATCH] fix typo --- tests/test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test.py b/tests/test.py index c83f7e3..060369b 100644 --- a/tests/test.py +++ b/tests/test.py @@ -48,7 +48,9 @@ class JudgerTest(TestCase): def test_args_check(self): os.setuid(pwd.getpwnam("nobody").pw_uid) with self.assertRaisesRegexp(ValueError, "root user is required when using nobody"): - judger.run(path="/bin/ls", in_file="1/in", out_file="/dev/null", max_cpu_time=2000, max_memory=200000000, + judger.run(path="/bin/ls", + in_file=os.path.join(os.path.dirname(os.path.abspath(__file__)), "1/in"), + out_file="/dev/null", max_cpu_time=2000, max_memory=200000000, env=["aaa=123"], use_sandbox=True, use_nobody=True)