[Python-modules-team] Bug#808056: python-statsd: FTBFS: AttributeError: assert_called_once

Chris Lamb lamby at debian.org
Tue Dec 15 16:31:46 UTC 2015


Source: python-statsd
Version: 3.2.1-1
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Dear Maintainer,

python-statsd fails to build from source in unstable/amd64:

  [..]

     dh_auto_test -O--buildsystem=pybuild
  I: pybuild base:184: cd /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_2.7/build; python2.7 -m nose 
  ..................................................................EE........
  ======================================================================
  ERROR: Socket errors in TCPStatsClient should be raised to user.
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
      self.test(*self.arg)
    File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 1305, in patched
      return func(*args, **keywargs)
    File "/home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_2.7/build/statsd/tests.py", line 945, in test_tcp_raises_exception_to_user
      cl._sock.sendall.assert_called_once()
    File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 721, in __getattr__
      raise AttributeError(name)
  AttributeError: assert_called_once
  
  ======================================================================
  ERROR: Timeout on TCPStatsClient should be set on socket.
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
      self.test(*self.arg)
    File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 1305, in patched
      return func(*args, **keywargs)
    File "/home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_2.7/build/statsd/tests.py", line 957, in test_tcp_timeout
      cl._sock.settimeout.assert_called_once()
    File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 721, in __getattr__
      raise AttributeError(name)
  AttributeError: assert_called_once
  
  ----------------------------------------------------------------------
  Ran 76 tests in 0.065s
  
  FAILED (errors=2)
  E: pybuild pybuild:274: test: plugin distutils failed with: exit code=1: cd /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_2.7/build; python2.7 -m nose 
  dh_auto_test: pybuild --test --test-nose -i python{version} -p 2.7 --dir . returned exit code 13
  debian/rules:8: recipe for target 'build' failed
  make: *** [build] Error 25

  [..]

The full build log is attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-statsd.3.2.1-1.unstable.amd64.log.txt.gz
Type: application/octet-stream
Size: 1590 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20151215/29af7508/attachment.obj>


More information about the Python-modules-team mailing list