Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9347200
D569.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
815 B
Subscribers
None
D569.diff
View Options
diff --git a/Makefile.python b/Makefile.python
--- a/Makefile.python
+++ b/Makefile.python
@@ -6,8 +6,8 @@
PYTHON_BIN := $(shell test -d bin/ && find bin/ -type f -executable | xargs egrep -H '^\#.*python' | cut -f 1 -d :)
TEST_DIRS := .
-NOSE = python3 -m nose
-NOSEFLAGS = -sv --with-doctest
+TEST = python3 -m pytest
+TESTFLAGS =
CODESPELL = codespell
CODESPELLFLAGS =
FLAKE = python3 -m flake8
@@ -19,11 +19,11 @@
.PHONY: test
test:
- $(NOSE) $(NOSEFLAGS) $(TEST_DIRS)
+ $(TEST) $(TESTFLAGS) $(TEST_DIRS)
.PHONY: coverage
coverage:
- $(NOSE) $(NOSEFLAGS) --with-coverage --cover-package $(PYMODULE) --cover-inclusive --cover-branches $(TEST_DIRS)
+ $(TEST) $(TESTFLAGS) --cov=$(PYMODULE) --cov-branch $(TEST_DIRS)
.PHONY: check check-flake check-codespell
check: check-flake check-codespell
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 3, 5:07 PM (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3217509
Attached To
D569: Switch test runner to pytest instead of nose
Event Timeline
Log In to Comment