mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 17:06:33 +03:00
The tests are run from the external of the package.
If __init__ is treated as a script, relative import fail.
This commit is contained in:
parent
cb6b52945b
commit
f697410ab4
6
Makefile
6
Makefile
|
@ -48,11 +48,11 @@ SDIST := dist/psycopg2-$(VERSION).tar.gz
|
||||||
EASY_INSTALL = PYTHONPATH=$(ENV_LIB) $(ENV_BIN)/easy_install-$(PYTHON_VERSION) -d $(ENV_LIB) -s $(ENV_BIN)
|
EASY_INSTALL = PYTHONPATH=$(ENV_LIB) $(ENV_BIN)/easy_install-$(PYTHON_VERSION) -d $(ENV_LIB) -s $(ENV_BIN)
|
||||||
EZ_SETUP = $(ENV_BIN)/ez_setup.py
|
EZ_SETUP = $(ENV_BIN)/ez_setup.py
|
||||||
|
|
||||||
.PHONY: env check runtests clean
|
.PHONY: env check clean
|
||||||
|
|
||||||
default: package
|
default: package
|
||||||
|
|
||||||
all: package runtests sdist
|
all: package sdist
|
||||||
|
|
||||||
package: $(PLATLIB) $(PURELIB)
|
package: $(PLATLIB) $(PURELIB)
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ ez_setup:
|
||||||
wget -O $(EZ_SETUP) http://peak.telecommunity.com/dist/ez_setup.py
|
wget -O $(EZ_SETUP) http://peak.telecommunity.com/dist/ez_setup.py
|
||||||
|
|
||||||
check:
|
check:
|
||||||
PYTHONPATH=$(BUILD_DIR):$(BUILD_DIR)/tests:$(PYTHONPATH) $(PYTHON) $(BUILD_DIR)/psycopg2/tests/__init__.py --verbose
|
PYTHONPATH=$(BUILD_DIR):$(PYTHONPATH) $(PYTHON) -c "from psycopg2 import tests; tests.unittest.main(defaultTest='tests.test_suite')" --verbose
|
||||||
|
|
||||||
testdb:
|
testdb:
|
||||||
@echo "* Creating $(TESTDB)"
|
@echo "* Creating $(TESTDB)"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user