Package: src:python-ws4py
Version: 0.3.4-3

I fixed unit test, then unit test passed on 1 core machine.
( add time.sleep(0.2) )

I send attachment files. (debdiff and buidlog)

Will it be fixed by this ?

[build environment]
- virtual machie(amd64) on Hyper-V on win10Pro.
- cpuinfo  (1 core)
$ cat /proc/cpuinfo | grep processor
processor       : 0

$ cat /proc/cpuinfo 
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 94
model name      : Intel(R) Celeron(R) CPU G3900T @ 2.60GHz
stepping        : 3
microcode       : 0xffffffff
cpu MHz         : 2590.622
cache size      : 2048 KB
physical id     : 0
siblings        : 1
core id         : 0
cpu cores       : 1
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 21
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush mmx fxsr sse sse2 ss syscall nx lm constant_tsc rep_good nopl 
eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 movbe popcnt aes xsave rdrand 
hypervisor lahf_lm abm 3dnowprefetch fsgsbase erms rdseed smap xsaveopt
bugs            :
bogomips        : 5181.24
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:



--- System information. ---
Architecture: 
Kernel:       Linux 4.9.0-1-amd64

Debian Release: 9.0
  500 unstable        ftp.jp.debian.org 

--- Package information. ---
Package's Depends field is empty.

Package's Recommends field is empty.

Package's Suggests field is empty.


-- 
SUGIMOTO Norimitsu <dict...@live.jp>
diff -Nru python-ws4py-0.3.4/debian/.pc/.quilt_patches python-ws4py-0.3.4/debian/.pc/.quilt_patches
--- python-ws4py-0.3.4/debian/.pc/.quilt_patches	1970-01-01 09:00:00.000000000 +0900
+++ python-ws4py-0.3.4/debian/.pc/.quilt_patches	2017-02-11 16:36:23.000000000 +0900
@@ -0,0 +1 @@
+patches
diff -Nru python-ws4py-0.3.4/debian/.pc/.quilt_series python-ws4py-0.3.4/debian/.pc/.quilt_series
--- python-ws4py-0.3.4/debian/.pc/.quilt_series	1970-01-01 09:00:00.000000000 +0900
+++ python-ws4py-0.3.4/debian/.pc/.quilt_series	2017-02-11 16:36:23.000000000 +0900
@@ -0,0 +1 @@
+series
diff -Nru python-ws4py-0.3.4/debian/.pc/.version python-ws4py-0.3.4/debian/.pc/.version
--- python-ws4py-0.3.4/debian/.pc/.version	1970-01-01 09:00:00.000000000 +0900
+++ python-ws4py-0.3.4/debian/.pc/.version	2017-02-11 16:36:23.000000000 +0900
@@ -0,0 +1 @@
+2
diff -Nru python-ws4py-0.3.4/debian/changelog python-ws4py-0.3.4/debian/changelog
--- python-ws4py-0.3.4/debian/changelog	2016-08-08 06:02:52.000000000 +0900
+++ python-ws4py-0.3.4/debian/changelog	2017-02-11 16:36:23.000000000 +0900
@@ -1,3 +1,11 @@
+python-ws4py (0.3.4-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * fix to fail unittest test_manager.py on 1 core CPU machine.
+    (Closes: #834921) 
+
+ -- Norimitsu Sugimoto <dict...@live.jp>  Sat, 11 Feb 2017 16:36:23 +0900
+
 python-ws4py (0.3.4-3) unstable; urgency=medium
 
   [ Ondřej Nový ]
diff -Nru python-ws4py-0.3.4/debian/patches/0001-Fix-tests.patch python-ws4py-0.3.4/debian/patches/0001-Fix-tests.patch
--- python-ws4py-0.3.4/debian/patches/0001-Fix-tests.patch	2016-08-08 05:56:14.000000000 +0900
+++ python-ws4py-0.3.4/debian/patches/0001-Fix-tests.patch	2017-02-11 16:36:23.000000000 +0900
@@ -10,10 +10,10 @@
  test/test_manager.py | 13 +++++++------
  1 file changed, 7 insertions(+), 6 deletions(-)
 
-diff --git a/test/test_manager.py b/test/test_manager.py
-index 8c229b0..da57d44 100644
---- a/test/test_manager.py
-+++ b/test/test_manager.py
+Index: python-ws4py-0.3.4/test/test_manager.py
+===================================================================
+--- python-ws4py-0.3.4.orig/test/test_manager.py
++++ python-ws4py-0.3.4/test/test_manager.py
 @@ -16,10 +16,10 @@ class WSManagerTest(unittest.TestCase):
          ws.sock.fileno.return_value = 1
          
@@ -36,7 +36,15 @@
          m.poller.reset_mock()
          
          m.remove(ws)
-@@ -97,8 +97,9 @@ class WSManagerTest(unittest.TestCase):
+@@ -62,6 +62,7 @@ class WSManagerTest(unittest.TestCase):
+         self.assertFalse(m.running)
+         
+         m.start()
++        time.sleep(0.2)
+         self.assertTrue(m.running)
+ 
+         m.stop()
+@@ -97,8 +98,9 @@ class WSManagerTest(unittest.TestCase):
          
          m.add(ws)
          m.start()
@@ -47,7 +55,7 @@
          
          m.stop()
      
-@@ -109,7 +110,7 @@ class WSManagerTest(unittest.TestCase):
+@@ -109,7 +111,7 @@ class WSManagerTest(unittest.TestCase):
          ws = MagicMock()
          m.add(ws)
          m.close_all()
@@ -56,7 +64,7 @@
          
      @patch('ws4py.manager.SelectPoller')
      def test_broadcast(self, MockSelectPoller):
-@@ -120,7 +121,7 @@ class WSManagerTest(unittest.TestCase):
+@@ -120,7 +122,7 @@ class WSManagerTest(unittest.TestCase):
          m.add(ws)
  
          m.broadcast(b'hello there')
diff -Nru python-ws4py-0.3.4/debian/patches/0002-Make-intersphinx-use-object.inv-from-python-doc.patch python-ws4py-0.3.4/debian/patches/0002-Make-intersphinx-use-object.inv-from-python-doc.patch
--- python-ws4py-0.3.4/debian/patches/0002-Make-intersphinx-use-object.inv-from-python-doc.patch	2016-08-08 05:56:14.000000000 +0900
+++ python-ws4py-0.3.4/debian/patches/0002-Make-intersphinx-use-object.inv-from-python-doc.patch	2017-02-11 16:36:23.000000000 +0900
@@ -7,10 +7,10 @@
  docs/conf.py | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
-diff --git a/docs/conf.py b/docs/conf.py
-index 8db4293..56d356b 100644
---- a/docs/conf.py
-+++ b/docs/conf.py
+Index: python-ws4py-0.3.4/docs/conf.py
+===================================================================
+--- python-ws4py-0.3.4.orig/docs/conf.py
++++ python-ws4py-0.3.4/docs/conf.py
 @@ -37,7 +37,7 @@ extensions = ['sphinx.ext.autodoc',
                'sphinxcontrib.seqdiag']
  autoclass_content = 'init'

Attachment: python-ws4py_0.3.4-3.1_amd64.build
Description: python-ws4py_0.3.4-3.1_amd64.build

Reply via email to