From: Daniele Varrazzo Date: Wed, 2 Mar 2022 00:57:51 +0000 (+0000) Subject: test(win32): skip Ctrl-C test on Windows X-Git-Tag: 3.1~176^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24da585022ecea310f142d8fd14463e91ab5243b;p=thirdparty%2Fpsycopg.git test(win32): skip Ctrl-C test on Windows As much as I've tried, haven't been able to send a Ctrl-C. Tests fail on "ctrl-c not received". --- diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py index 86e1fe410..0f2f5e840 100644 --- a/tests/test_concurrency.py +++ b/tests/test_concurrency.py @@ -207,6 +207,9 @@ def test_identify_closure(dsn): @pytest.mark.slow @pytest.mark.subprocess +@pytest.mark.skipif( + sys.platform == "win32", reason="don't know how to Ctrl-C on Windows" +) def test_ctrl_c(dsn): if sys.platform == "win32": sig = int(signal.CTRL_C_EVENT)