File: increase-timeout-rv64.patch

package info (click to toggle)
python-tornado 6.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 3,176 kB
  • sloc: python: 28,920; javascript: 156; sh: 100; ansic: 72; xml: 49; makefile: 49; sql: 23
file content (31 lines) | stat: -rw-r--r-- 1,022 bytes parent folder | download
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")