()
| 1549 | |
| 1550 | @pytest.mark.xfail(condition=_is_win32(), reason="flaky on Windows") |
| 1551 | def test_cli_edit_interrupt_twice() -> None: |
| 1552 | # two SIGINTs should kill the CLI |
| 1553 | port = _get_port() |
| 1554 | p = subprocess.Popen( |
| 1555 | [ |
| 1556 | "marimo", |
| 1557 | "edit", |
| 1558 | "-p", |
| 1559 | str(port), |
| 1560 | "--headless", |
| 1561 | "--no-token", |
| 1562 | "--skip-update-check", |
| 1563 | ] |
| 1564 | ) |
| 1565 | _check_started(port) |
| 1566 | with _patch_signals_win32(): |
| 1567 | _interrupt(p) |
| 1568 | assert p.poll() is None |
| 1569 | _interrupt(p) |
| 1570 | # exit code is system dependent when killed by signal |
| 1571 | _check_shutdown(p, check_fn=lambda code: code is not None) |
| 1572 | |
| 1573 | |
| 1574 | @pytest.mark.xfail(condition=_is_win32(), reason="flaky on Windows") |
nothing calls this directly
no test coverage detected
searching dependent graphs…