]> 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 01:55:26 +0000 (01:55 +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 9e5ceda2074fdea5d57a194028dc6ecf80d31c6c..d09cc20db8b3fc1247921d3099122d7cb8169da3 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)