aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_nsjail.py
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2023-08-29 19:35:53 +0100
committerGravatar GitHub <[email protected]>2023-08-29 19:35:53 +0100
commitf85116ab91229d3f45a8292978ffd2af7821c70e (patch)
treeff08fbd7ee351092948eca109b320d99f05338a1 /tests/test_nsjail.py
parentMerge pull request #183 from python-discord/enforce-filesize-limits (diff)
parentInstall 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/test_nsjail.py')
-rw-r--r--tests/test_nsjail.py4
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)