mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-04 12:20:09 +03:00
Merge c85d190f26
into 2218e73c28
This commit is contained in:
commit
08db3364dc
3
Makefile
3
Makefile
|
@ -18,8 +18,9 @@
|
||||||
# make check # this requires setting up a test database with the correct user
|
# make check # this requires setting up a test database with the correct user
|
||||||
|
|
||||||
PYTHON := python$(PYTHON_VERSION)
|
PYTHON := python$(PYTHON_VERSION)
|
||||||
|
PYTHON_PLATFORM := $(shell $(PYTHON) -c 'import sysconfig; print(sysconfig.get_platform())')
|
||||||
PYTHON_VERSION ?= $(shell $(PYTHON) -c 'import sys; print("%d.%d" % sys.version_info[:2])')
|
PYTHON_VERSION ?= $(shell $(PYTHON) -c 'import sys; print("%d.%d" % sys.version_info[:2])')
|
||||||
BUILD_DIR = $(shell pwd)/build/lib.$(PYTHON_VERSION)
|
BUILD_DIR = $(shell pwd)/build/lib.$(PYTHON_PLATFORM)-$(PYTHON_VERSION)
|
||||||
|
|
||||||
SOURCE_C := $(wildcard psycopg/*.c psycopg/*.h)
|
SOURCE_C := $(wildcard psycopg/*.c psycopg/*.h)
|
||||||
SOURCE_PY := $(wildcard lib/*.py)
|
SOURCE_PY := $(wildcard lib/*.py)
|
||||||
|
|
|
@ -553,7 +553,7 @@ class CursorTests(ConnectingTestCase):
|
||||||
# Issue #443 is in the async code too. Since the fix is duplicated,
|
# Issue #443 is in the async code too. Since the fix is duplicated,
|
||||||
# so is the test.
|
# so is the test.
|
||||||
control_conn = self.conn
|
control_conn = self.conn
|
||||||
connect_func = lambda: self.connect(async=True)
|
connect_func = lambda: self.connect(async_=True)
|
||||||
wait_func = psycopg2.extras.wait_select
|
wait_func = psycopg2.extras.wait_select
|
||||||
self._test_external_close(control_conn, connect_func, wait_func)
|
self._test_external_close(control_conn, connect_func, wait_func)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user