File: increase-timeout-rv64.patch

package info (click to toggle)
python-tornado 6.4.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,408 kB
  • sloc: python: 28,501; javascript: 156; sh: 100; ansic: 58; xml: 49; makefile: 49; sql: 23
file content (29 lines) | stat: -rw-r--r-- 799 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
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/
--- a/tornado/test/autoreload_test.py
+++ b/tornado/test/autoreload_test.py
@@ -7,6 +7,7 @@
 import textwrap
 import time
 import unittest
+import platform
 
 
 class AutoreloadTest(unittest.TestCase):
@@ -91,7 +92,10 @@
         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")