Skip to content

Commit ed38911

Browse files
committed
Fix make test rule.
1 parent 1945f74 commit ed38911

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
*.pyc
22
*~
3+
.cache/
34
__pycache__/
4-
/.cache/
55
/MANIFEST
66
/build/
77
/dist/

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ BUILDDIR = $(CURDIR)/build
55
build:
66
$(PYTHON) setup.py build
77

8-
test:
9-
$(PYTHON) -m pytest
8+
test: build
9+
PYTHONPATH=$(BUILDDIR)/lib $(PYTHON) -m pytest tests
1010

1111
sdist: python2_6.patch doc-html
1212
$(PYTHON) setup.py sdist
@@ -28,7 +28,7 @@ clean:
2828
$(MAKE) -C doc clean
2929

3030
distclean: clean
31-
rm -rf .cache
31+
rm -rf .cache tests/.cache
3232
rm -f MANIFEST
3333
rm -f *.pyc tests/*.pyc doc/examples/*.pyc
3434
rm -rf __pycache__ tests/__pycache__ doc/examples/__pycache__

0 commit comments

Comments
 (0)