mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
fix broken yield
This commit is contained in:
parent
382bc69a2b
commit
da6a6482f1
2 changed files with 6 additions and 11 deletions
|
|
@ -204,7 +204,7 @@ def consume_argv():
|
|||
# Consume all the args from a given list
|
||||
def consume_args(args: list):
|
||||
if (args is sys.argv):
|
||||
return consume_argv()
|
||||
yield from consume_argv()
|
||||
|
||||
while len(args) >= 1:
|
||||
value = args[0]
|
||||
|
|
|
|||
|
|
@ -73,16 +73,11 @@ def cli(pyfile):
|
|||
|
||||
|
||||
# Test a combination of command line switches
|
||||
#@pytest.mark.parametrize("target_kind", ["file", "module", "code"])
|
||||
#@pytest.mark.parametrize("mode", ["listen", "connect"])
|
||||
#@pytest.mark.parametrize("address", ["8888", "localhost:8888"])
|
||||
#@pytest.mark.parametrize("wait_for_client", ["", "wait_for_client"])
|
||||
#@pytest.mark.parametrize("script_args", ["", "script_args"])
|
||||
@pytest.mark.parametrize("target_kind", ["file"])
|
||||
@pytest.mark.parametrize("mode", ["listen"])
|
||||
@pytest.mark.parametrize("address", ["8888"])
|
||||
@pytest.mark.parametrize("wait_for_client", ["wait_for_client"])
|
||||
@pytest.mark.parametrize("script_args", ["script_args"])
|
||||
@pytest.mark.parametrize("target_kind", ["file", "module", "code"])
|
||||
@pytest.mark.parametrize("mode", ["listen", "connect"])
|
||||
@pytest.mark.parametrize("address", ["8888", "localhost:8888"])
|
||||
@pytest.mark.parametrize("wait_for_client", ["", "wait_for_client"])
|
||||
@pytest.mark.parametrize("script_args", ["", "script_args"])
|
||||
def test_targets(cli, target_kind, mode, address, wait_for_client, script_args):
|
||||
expected_options = {
|
||||
"mode": mode,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue