From 4d915fbefdb90931fd086aa711a371fc275b0d1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3n=C3=A1n=20Carrigan?= Date: Sat, 2 Jul 2022 09:58:14 +0100 Subject: [PATCH] fix(unittest): handle extra args --- neotest_python/unittest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neotest_python/unittest.py b/neotest_python/unittest.py index f884e82..ee0035f 100644 --- a/neotest_python/unittest.py +++ b/neotest_python/unittest.py @@ -92,7 +92,7 @@ class UnittestNeotestAdapter(NeotestAdapter): # Make sure we can import relative to current path sys.path.insert(0, os.getcwd()) # We only get a single case ID as the argument - argv = sys.argv[0:1] + self.id_to_unittest_args(args[0]) + argv = sys.argv[0:1] + self.id_to_unittest_args(args[-1]) unittest.main( module=None, argv=argv,