aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_nsjail.py
diff options
context:
space:
mode:
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")