]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
test(win32): skip Ctrl-C test on Windows
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 2 Mar 2022 00:57:51 +0000 (00:57 +0000)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 2 Mar 2022 02:21:35 +0000 (02:21 +0000)
As much as I've tried, haven't been able to send a Ctrl-C. Tests fail on
"ctrl-c not received".

tests/test_concurrency.py

index 86e1fe410a7fa124a261f4638c685455fce2d397..0f2f5e840e9d2e2150f982a05d9a0c46d88b7b41 100644 (file)
@@ -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)