Michael R. Crusoe pushed to branch master at Debian Python Team / packages / 
mypy


Commits:
df768548 by Michael R. Crusoe at 2026-03-08T16:53:54+01:00
i386: skip test testDataclassTransformClass_semanal that crashes pytest.

- - - - -


3 changed files:

- debian/changelog
- debian/rules
- debian/tests/run-unit-test


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+mypy (1.19.1-5) unstable; urgency=medium
+
+  * i386: skip "testDataclassTransformClass_semanal" that crashes pytest
+    (Python 3.14.3) on the debci workers.
+    (I'm unable to reproduce locally or on the i386 porterbox.)
+
+ -- Michael R. Crusoe <[email protected]>  Sun, 08 Mar 2026 16:51:25 +0100
+
 mypy (1.19.1-4) unstable; urgency=medium
 
   * python3-orjson is also available on i386.


=====================================
debian/rules
=====================================
@@ -12,6 +12,10 @@ ifneq (,$(filter $(DEB_HOST_ARCH),armel armhf mips64el hppa 
riscv64 mipsel alpha
   export MYPYC_MULTI_FILE=1
 endif
 
+ifneq (,$(filter $(DEB_HOST_ARCH),i386))
+  EXTRA_SKIP=or testDataclassTransformClass_semanal
+endif
+
 ifneq ($(filter pkg.mypy.multifile,$(DEB_BUILD_PROFILES)),)
   export MYPYC_MULTI_FILE=1
 endif
@@ -91,7 +95,7 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_PROFILES)))
        dh_auto_install
        set -e; for v in $(PY3VERS); do \
                env -u CFLAGS PYTHONPATH=$$(pybuild --print build_dir --pyver 
$$v | awk '{ print $$3 }') PATH=$$PATH:$(CURDIR)/debian/python3-mypy/usr/bin/ 
python$$v -m pytest $(DEB_BUILD_OPTION_PARALLEL:%=-n%) \
-               -o testpaths="mypy/test mypyc/test" -o python_files=test*.py -k 
'not (testCustomTypeshedDirWithRelativePathDoesNotCrash or 
testNoPython3StubAvailable or testIgnoreImportIfNoPython3StubAvailable or 
PEP561Suite or testDaemonStatusKillRestartRecheck)' \
+               -o testpaths="mypy/test mypyc/test" -o python_files=test*.py -k 
'not (testCustomTypeshedDirWithRelativePathDoesNotCrash or 
testNoPython3StubAvailable or testIgnoreImportIfNoPython3StubAvailable or 
PEP561Suite or testDaemonStatusKillRestartRecheck $(EXTRA_SKIP))' \
                -o python_classes= -o python_functions= ; \
        done
        # testIgnoreImportIfNoPython3StubAvailable fails due to scribe not 
being installed (it isn't packaged for Debian)


=====================================
debian/tests/run-unit-test
=====================================
@@ -31,8 +31,12 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 export MYPYC_DEBUG_LEVEL=2
 export TEST_MYPYC=1
 
+if [ "$(dpkg-architecture -qDEB_BUILD_ARCH)" = "i386" ]; then
+  EXTRA_SKIP="or testDataclassTransformClass_semanal"
+fi
+
 set -e; for v in $(py3versions -vs) ; do
-python${v} -m pytest -n $(nproc) -v -o testpaths="mypy/test mypyc/test" -o 
python_files=test*.py -o python_classes= -o python_functions= -k "not 
(test_bad_eq_version_check or test_bad_ge_version_check or 
test_parse_invalid_case or test_parse_invalid_section or test_update_data or 
testDaemonStatusKillRestartRecheck or testErrorCodeMissingModule or 
testErrorFromGoogleCloud or testCustomTypeshedDirWithRelativePathDoesNotCrash 
or testLibraryStubsNotInstalled or testIgnoreImportIfNoPython3StubAvailable or 
testNoPython3StubAvailable or testAttrsClass_semanal or 
testRunAsyncMiscTypesInEnvironment)"
+python${v} -m pytest -n $(nproc) -v -o testpaths="mypy/test mypyc/test" -o 
python_files=test*.py -o python_classes= -o python_functions= -k "not 
(test_bad_eq_version_check or test_bad_ge_version_check or 
test_parse_invalid_case or test_parse_invalid_section or test_update_data or 
testDaemonStatusKillRestartRecheck or testErrorCodeMissingModule or 
testErrorFromGoogleCloud or testCustomTypeshedDirWithRelativePathDoesNotCrash 
or testLibraryStubsNotInstalled or testIgnoreImportIfNoPython3StubAvailable or 
testNoPython3StubAvailable or testAttrsClass_semanal or 
testRunAsyncMiscTypesInEnvironment ${EXTRA_SKIP})"
 done
 
 # testErrorCodeMissingModule: different error message on Debian



View it on GitLab: 
https://salsa.debian.org/python-team/packages/mypy/-/commit/df768548fc3ca7345f88f6affd4f0d97b583c6cf

-- 
View it on GitLab: 
https://salsa.debian.org/python-team/packages/mypy/-/commit/df768548fc3ca7345f88f6affd4f0d97b583c6cf
You're receiving this email because of your account on salsa.debian.org.


_______________________________________________
debian-med-commit mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to