File: 0001-Fix-tests.patch

package info (click to toggle)
python-ws4py 0.6.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 676 kB
  • sloc: python: 4,552; makefile: 137; javascript: 96
file content (23 lines) | stat: -rw-r--r-- 538 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
From: Stein Magnus Jodal <jodal@debian.org>
Date: Thu, 5 Nov 2015 15:46:08 +0100
Subject: Fix tests

Based on upstream commits:
- b5d47f7b3497f1b713a20fe6306b7d9afdd8c408
- b2a76a33960040d7d3d27c68bf17c12f169f81c7

fix unittest failing on 1 CPU machines
---
 test/test_manager.py | 1 +
 1 file changed, 1 insertion(+)

--- a/test/test_manager.py
+++ b/test/test_manager.py
@@ -72,6 +72,7 @@
         self.assertFalse(m.running)
         
         m.start()
+        time.sleep(0.2)
         self.assertTrue(m.running)
 
         m.stop()