diff options
author | 2023-08-29 19:35:53 +0100 | |
---|---|---|
committer | 2023-08-29 19:35:53 +0100 | |
commit | f85116ab91229d3f45a8292978ffd2af7821c70e (patch) | |
tree | ff08fbd7ee351092948eca109b320d99f05338a1 /tests | |
parent | Merge pull request #183 from python-discord/enforce-filesize-limits (diff) | |
parent | Install eval dependencies with --user & ensure user base var is set (diff) |
Merge pull request #181 from python-discord/feat/158/multi-version
Install Multiple Python Versions in the Image
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_nsjail.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_nsjail.py b/tests/test_nsjail.py index 5b06534..e422de5 100644 --- a/tests/test_nsjail.py +++ b/tests/test_nsjail.py @@ -79,7 +79,7 @@ class NsJailTests(unittest.TestCase): for _ in range({max_pids}): print(subprocess.Popen( [ - '/usr/local/bin/python3', + '/lang/python/default/bin/python', '-c', 'import time; time.sleep(1)' ], @@ -486,7 +486,7 @@ class NsJailTests(unittest.TestCase): for args, expected in cases: with self.subTest(args=args): result = self.nsjail.python3(py_args=args) - idx = result.args.index("-BSqu") + idx = result.args.index(self.nsjail.config.exec_bin.path) self.assertEqual(result.args[idx + 1 :], expected) self.assertEqual(result.returncode, 0) |