Bug#893743: python-cffi: FTBFS on hurd-i386: test_thread AssertionError

2018-09-12 Thread Stefano Rivera
Control: severity -1 normal
Control: retitle -1 locking issues on hurd cause test failure
Control: forwarded -1 
https://bitbucket.org/cffi/cffi/issues/383/test-fails-on-gnu-hurd-locking-issues

I'm going to skip this test for now, but leave the bug open, until the
underlying issue is resolved.

This is a bug, but it's not critical for the vast majority of CFFI
users, and we don't want to abort the build.

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272



Bug#893743: python-cffi: FTBFS on hurd-i386: test_thread AssertionError

2018-03-21 Thread Aaron M. Ucko
Source: python-cffi
Version: 1.11.5-1
Severity: important
Tags: upstream
Justification: fails to build from source (but built successfully in the past)
User: debian-h...@lists.debian.org
Usertags: hurd

The latest build of python-cffi for hurd-i386 (admittedly not a
release architecture) failed, per the below excerpts from [1]:

  I: pybuild base:184: python2.7-dbg -m pytest c/ testing/
  = test session starts 
==
  [...]
  === FAILURES 
===
  _ TestThread.test_init_different_modules_in_different_threads 
__
  
  self = 
  
  def test_init_different_modules_in_different_threads(self):
  add1_cffi = self.prepare_module('add1')
  add2_cffi = self.prepare_module('add2')
  self.compile('thread2-test', [add1_cffi, add2_cffi], threads=True)
  output = self.execute('thread2-test')
  output = self._take_out(output, "preparing")
  output = self._take_out(output, ".")
  output = self._take_out(output, ".")
  # at least the 3rd dot should be after everything from ADD2
  >   assert output == ("starting\n"
"prepADD2\n"
"adding 1000 and 200 and 30\n"
".\n"
"adding 40 and 2\n"
"done\n")
  E   AssertionError: assert 'starting\n.\...nd 30\ndone\n' == 
'starting\npre...and 2\ndone\n'
  E   starting
  E + prepADD2
  E + adding 1000 and 200 and 30
  E   .
  E   adding 40 and 2
  E - prepADD2
  E - adding 1000 and 200 and 30...
  E 
  E ...Full output truncated (2 lines hidden), use '-vv' to show
  
  testing/embedding/test_thread.py:29: AssertionError

Could you please take a look?

Thanks!

[1] 
https://buildd.debian.org/status/fetch.php?pkg=python-cffi=hurd-i386=1.11.5-1=1519773174=0

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?a...@monk.mit.edu