File: 0007-Higher-test_gc-timeout.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 (25 lines) | stat: -rw-r--r-- 889 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
From: =?utf-8?b?T25kxZllaiBOb3bDvQ==?= <onovy@debian.org>
Date: Thu, 2 Apr 2020 09:40:41 +0000
Subject: Set timeout in test_gc to higher value

Forwarded: not-needed
---
 tornado/test/gen_test.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Index: python-tornado/tornado/test/gen_test.py
===================================================================
--- python-tornado.orig/tornado/test/gen_test.py
+++ python-tornado/tornado/test/gen_test.py
@@ -961,7 +961,10 @@ class RunnerGCTest(AsyncTestCase):
             self.io_loop.add_callback(callback)
             yield fut
 
-        yield gen.with_timeout(datetime.timedelta(seconds=0.2), tester())
+        yield gen.with_timeout(
+            datetime.timedelta(seconds=1),
+            tester()
+        )
 
     def test_gc_infinite_coro(self):
         # GitHub issue 2229: suspended coroutines should be GCed when