fix broken yield

This commit is contained in:
Adam Yoblick 2024-07-22 18:15:29 -05:00
parent 382bc69a2b
commit da6a6482f1
2 changed files with 6 additions and 11 deletions

View file

@ -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]

View file

@ -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,