This commit is contained in:
Jon Dufresne 2017-12-03 22:37:04 +00:00 committed by GitHub
commit 08db3364dc
2 changed files with 4 additions and 3 deletions

View File

@ -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_VERSION ?= $(shell $(PYTHON) -c 'import sys; print ("%d.%d" % sys.version_info[:2])') PYTHON_PLATFORM := $(shell $(PYTHON) -c 'import sysconfig; print(sysconfig.get_platform())')
BUILD_DIR = $(shell pwd)/build/lib.$(PYTHON_VERSION) PYTHON_VERSION ?= $(shell $(PYTHON) -c 'import sys; print("%d.%d" % sys.version_info[:2])')
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)

View File

@ -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)