aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_nsjail.py
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-12-26 18:40:11 +0000
committerGravatar GitHub <[email protected]>2021-12-26 18:40:11 +0000
commite5c07edcb90018ac14787048e87f13c1384faf9f (patch)
treec2a2f478e2a27093c18fef5db49a645e87d9ee41 /tests/test_nsjail.py
parentExcluded the snekbox/config_pb2.py from coverage (#130) (diff)
parentCI: disable setup-python action on self-hosted runner (diff)
Merge pull request #127 from python-discord/feat/nsjail/102/cgroupv2
Diffstat (limited to 'tests/test_nsjail.py')
-rw-r--r--tests/test_nsjail.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_nsjail.py b/tests/test_nsjail.py
index c0ed96b..989cc31 100644
--- a/tests/test_nsjail.py
+++ b/tests/test_nsjail.py
@@ -259,7 +259,8 @@ class NsJailTests(unittest.TestCase):
args = ("foo", "bar")
result = self.nsjail.python3("", nsjail_args=args)
- self.assertEqual(result.args[9:11], args)
+ end = result.args.index("--")
+ self.assertEqual(result.args[end - len(args):end], args)
def test_py_args(self):
args = ("-m", "timeit")