1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
Description: increase timeout on riscv64
Author: Bo YU <vimer@debian.org>
Bug: https://bugs.debian.org/1106130
Forwarded: not-needed
Last-Update: 2025-05-19
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: python-tornado/tornado/test/autoreload_test.py
===================================================================
--- python-tornado.orig/tornado/test/autoreload_test.py
+++ python-tornado/tornado/test/autoreload_test.py
@@ -7,6 +7,7 @@ from tempfile import mkdtemp
import textwrap
import time
import unittest
+import platform
class AutoreloadTest(unittest.TestCase):
@@ -95,7 +96,10 @@ class AutoreloadTest(unittest.TestCase):
for i in range(40):
if p.poll() is not None:
break
- time.sleep(0.1)
+ if platform.machine() == "riscv64":
+ time.sleep(1)
+ else:
+ time.sleep(0.1)
else:
p.kill()
raise Exception("subprocess failed to terminate")
|