[med-svn] [Git][python-team/packages/mypy][master] 2 commits: Add patch to remove mypyc test run timeout, for sparc64 and others.

Michael R. Crusoe (@crusoe) gitlab at salsa.debian.org
Tue Mar 31 16:03:46 BST 2026



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


Commits:
09d7a882 by Michael R. Crusoe at 2026-03-24T15:14:09+02:00
Add patch to remove mypyc test run timeout, for sparc64 and others.

- - - - -
6f181f48 by Michael R. Crusoe at 2026-03-24T16:03:31+02:00
d/rules: skip testDaemonStatusKillRestartRecheck, it is flaky when testing using "unshare".

- - - - -


4 changed files:

- debian/changelog
- + debian/patches/remove-mypyc-test-run-timeout
- debian/patches/series
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+mypy (1.19.1-10) UNRELEASED; urgency=medium
+
+  * Add patch to remove mypyc test run timeout, for sparc64 and others.
+  * d/rules: skip testDaemonStatusKillRestartRecheck, it is flaky when
+    testing using "unshare".
+
+ -- Michael R. Crusoe <crusoe at debian.org>  Tue, 24 Mar 2026 15:14:08 +0200
+
 mypy (1.19.1-9) unstable; urgency=medium
 
   * d/rules: for {hurd-,}i386: skip compiling mypy with mypyc due to


=====================================
debian/patches/remove-mypyc-test-run-timeout
=====================================
@@ -0,0 +1,17 @@
+From: Michael R. Crusoe <crusoe at debian.org>
+Subject: remove 30 seconds timeout, due to slower architectures
+
+With Python version 3.13.x & 3.14.x we don't see any hangs
+But on sparc64 with hit the timeout, so remove it
+
+--- mypy.orig/mypyc/test/test_run.py
++++ mypy/mypyc/test/test_run.py
+@@ -342,7 +342,7 @@
+             stderr=subprocess.STDOUT,
+             env=env,
+         )
+-        if sys.version_info >= (3, 12):
++        if sys.version_info >= (3, 12) and sys.version_info < (3, 13):
+             # TODO: testDecorators1 hangs on 3.12, remove this once fixed
+             proc.wait(timeout=30)
+         output = proc.communicate()[0].decode("utf8")


=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
+remove-mypyc-test-run-timeout
 clear-cflags
 lib-rt-tests
 hint-typeshed-package


=====================================
debian/rules
=====================================
@@ -30,11 +30,12 @@ export MYPY_TEST_PREFIX=$(CURDIR)
 export PYBUILD_TEST_ARGS=$(DEB_BUILD_OPTION_PARALLEL:%=-n%) \
 	-o python_files=test*.py \
 	-o python_classes= -o python_functions= --pyargs mypy.test mypyc.test \
-	-k 'not (PEP561Suite or testIgnoreImportIfNoPython3StubAvailable or testNoPython3StubAvailable or testCustomTypeshedDirWithRelativePathDoesNotCrash)'
+	-k 'not (PEP561Suite or testIgnoreImportIfNoPython3StubAvailable or testNoPython3StubAvailable or testCustomTypeshedDirWithRelativePathDoesNotCrash or testDaemonStatusKillRestartRecheck)'
 # PEP561Suite: needs internet access to pypi.org
 # testIgnoreImportIfNoPython3StubAvailable: needs scribe installed (it isn't packaged for Debian)
 # testNoPython3StubAvailable: no longer works because python3-typeshed includes docutils types, which it isn't expecting
 # testCustomTypeshedDirWithRelativePathDoesNotCrash: fails as the mypy_extensions package is installed, so a different error appears
+# testDaemonStatusKillRestartRecheck: fails for sbuild/unshare
 
 %:
 	dh $@  --buildsystem=pybuild



View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/c2afd15493885e1b235930b55f2f11746b63c732...6f181f48d54e9b0d957f8b12ec742998d9ff50b7

-- 
View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/c2afd15493885e1b235930b55f2f11746b63c732...6f181f48d54e9b0d957f8b12ec742998d9ff50b7
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/20260331/c7e3ec64/attachment-0001.htm>


More information about the debian-med-commit mailing list