[med-svn] [Git][med-team/mypy][master] fix tests
Michael R. Crusoe (@crusoe)
gitlab at salsa.debian.org
Sat Sep 18 12:24:39 BST 2021
Michael R. Crusoe pushed to branch master at Debian Med / mypy
Commits:
8dd26a71 by Michael R. Crusoe at 2021-09-18T13:24:20+02:00
fix tests
- - - - -
3 changed files:
- debian/rules
- debian/tests/control
- debian/tests/run-unit-test
Changes:
=====================================
debian/rules
=====================================
@@ -72,15 +72,14 @@ override_dh_auto_install:
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_PROFILES)))
export TEST_MYPYC=1
- # PYBUILD_SYSTEM=custom \
- # PYBUILD_TEST_ARGS="{interpreter} -m mypy \
- # --config-file {dir}/mypy_self_check.ini -p mypy" dh_auto_test
- # ^^^ requires pytest > 6.0.0
+ PYBUILD_SYSTEM=custom \
+ PYBUILD_TEST_ARGS="{interpreter} -m mypy \
+ --config-file {dir}/mypy_self_check.ini -p mypy" dh_auto_test
dh_auto_install
set -e; for v in $(PY3VERS); do \
PATH=$$PATH:$(CURDIR)/debian/mypy/usr/bin/ python$$v -m pytest -n auto \
- -o testpaths=mypy/test -o python_files=test*.py \
- -k "not StubtestMiscUnit" \
+ -o testpaths="mypy/test mypyc/test" -o python_files=test*.py \
+ -k "not (StubtestMiscUnit or StubtestUnit)" \
-o python_classes= -o python_functions=; \
done
endif
=====================================
debian/tests/control
=====================================
@@ -1,3 +1,3 @@
Tests: run-unit-test
-Depends: mypy, python3-pytest-xdist, python3-virtualenv, python3-lxml
+Depends: mypy, python3-types-toml, python3-types-typed-ast, python3-pytest-xdist, python3-virtualenv, python3-lxml
Restrictions: allow-stderr
=====================================
debian/tests/run-unit-test
=====================================
@@ -14,10 +14,11 @@ cd "$AUTOPKGTEST_TMP"
export TEST_MYPYC=1
-MYPY_TEST_PREFIX=${START} pytest-3 -n auto -o testpaths=mypy/test \
- -o python_files=test*.py -o python_classes= -o python_functions= \
- -k 'not StubtestMiscUnit' --pyargs mypy
+MYPY_TEST_PREFIX=${START} pytest-3 -n auto -v -o testpaths="mypy/test mypyc/test" \
+ -o python_files=test*.py -o python_classes= \
+ -o python_functions= -k 'not (StubtestMiscUnit or StubtestUnit)' \
+ --pyargs mypy
cp -r /usr/lib/python3/dist-packages/mypy ./
-#/usr/bin/mypy --config-file ${START}/mypy_self_check.ini mypy
-# skip self test until pytest >= 6.0 is in Debian
+rm -Rf mypy/typeshed
+/usr/bin/mypy --config-file ${START}/mypy_self_check.ini mypy
View it on GitLab: https://salsa.debian.org/med-team/mypy/-/commit/8dd26a71d38ab936799abac30e099679e784f4da
--
View it on GitLab: https://salsa.debian.org/med-team/mypy/-/commit/8dd26a71d38ab936799abac30e099679e784f4da
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20210918/2382927c/attachment-0001.htm>
More information about the debian-med-commit
mailing list