diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-02-07 11:37:41 +0000 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-02-07 12:29:06 +0000 |
commit | 791befca186f4dc4d77908159a7ed991bd806252 (patch) | |
tree | c9b11d2a58e83c9ccdee551c58382092d40bc0bc | |
parent | 7210287e76938e4fd574e69a980f0013023a4dcf (diff) | |
download | psycopg2-791befca186f4dc4d77908159a7ed991bd806252.tar.gz |
Use pydll to poke into extension library
Causes an error in Py 3.6 in debug mode.
Close #505
-rwxr-xr-x | tests/test_types_basic.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_types_basic.py b/tests/test_types_basic.py index 614d4fd..d17e529 100755 --- a/tests/test_types_basic.py +++ b/tests/test_types_basic.py @@ -452,7 +452,7 @@ class ByteaParserTest(unittest.TestCase): expected. """ import ctypes - lib = ctypes.cdll.LoadLibrary(psycopg2._psycopg.__file__) + lib = ctypes.pydll.LoadLibrary(psycopg2._psycopg.__file__) cast = lib.typecast_BINARY_cast cast.argtypes = [ctypes.c_char_p, ctypes.c_size_t, ctypes.py_object] cast.restype = ctypes.py_object |