]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
test: skip test on windows, C implementation, in ci
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 18 Dec 2022 02:54:08 +0000 (02:54 +0000)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 18 Dec 2022 19:12:23 +0000 (19:12 +0000)
No idea why ctypes doesn't work, and I really don't care.

tests/pq/test_pgconn.py

index 663511a4dda260e1de01da2e54a20f8813a25dc9..05661511ad0b14f16561f6d1bea07549fff0d83f 100644 (file)
@@ -1,4 +1,5 @@
 import os
+import sys
 import ctypes
 import logging
 import weakref
@@ -90,6 +91,12 @@ def test_weakref(dsn):
     assert w() is None
 
 
+@pytest.mark.skipif(
+    sys.platform == "win32"
+    and os.environ.get("CI") == "true"
+    and pq.__impl__ != "python",
+    reason="can't figure out how to make ctypes run, don't care",
+)
 def test_pgconn_ptr(pgconn, libpq):
     assert isinstance(pgconn.pgconn_ptr, int)