 dpkg-buildpackage -rfakeroot -D -us -uc -b
dpkg-buildpackage: source package python-statsd
dpkg-buildpackage: source version 3.2.1-1
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Filippo Giunchedi <filippo@debian.org>
 dpkg-source --before-build python-statsd-3.2.1
dpkg-buildpackage: host architecture amd64
dpkg-source: info: using options from python-statsd-3.2.1/debian/source/options: --extend-diff-ignore=^[^/]+\.egg-info/ --extend-diff-ignore=^\.gitreview$
 fakeroot debian/rules clean
dh clean --with python2,python3 --buildsystem=pybuild
   dh_testdir -O--buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:184: python2.7 setup.py clean 
running clean
removing '/home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_2.7/build' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.7' does not exist -- can't clean it
I: pybuild base:184: python3.5 setup.py clean 
running clean
removing '/home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_3.5/build' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.5' does not exist -- can't clean it
I: pybuild base:184: python3.4 setup.py clean 
running clean
removing '/home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_3.4/build' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.4' does not exist -- can't clean it
   debian/rules override_dh_clean
make[1]: Entering directory '/home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1'
dh_clean
# dh_clean does not support recursive deletions via debian/clean
# so we have to explicitly delete the egg directories there.
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=511048
rm -rf mock-*.egg
rm -rf nose-*.egg
make[1]: Leaving directory '/home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1'
 debian/rules build
dh build --with python2,python3 --buildsystem=pybuild
   dh_testdir -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
I: pybuild base:184: python2.7 setup.py config 
running config
I: pybuild base:184: python3.5 setup.py config 
running config
I: pybuild base:184: python3.4 setup.py config 
running config
   dh_auto_build -O--buildsystem=pybuild
I: pybuild base:184: /usr/bin/python setup.py build 
running build
running build_py
creating /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_2.7/build/statsd
copying statsd/__init__.py -> /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_2.7/build/statsd
copying statsd/tests.py -> /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_2.7/build/statsd
copying statsd/client.py -> /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_2.7/build/statsd
creating /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_2.7/build/statsd/defaults
copying statsd/defaults/__init__.py -> /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_2.7/build/statsd/defaults
copying statsd/defaults/env.py -> /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_2.7/build/statsd/defaults
copying statsd/defaults/django.py -> /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_2.7/build/statsd/defaults
running egg_info
creating statsd.egg-info
writing statsd.egg-info/PKG-INFO
writing top-level names to statsd.egg-info/top_level.txt
writing dependency_links to statsd.egg-info/dependency_links.txt
writing manifest file 'statsd.egg-info/SOURCES.txt'
reading manifest file 'statsd.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'statsd.egg-info/SOURCES.txt'
I: pybuild base:184: /usr/bin/python3.5 setup.py build 
running build
running build_py
creating /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_3.5/build/statsd
copying statsd/__init__.py -> /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_3.5/build/statsd
copying statsd/tests.py -> /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_3.5/build/statsd
copying statsd/client.py -> /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_3.5/build/statsd
creating /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_3.5/build/statsd/defaults
copying statsd/defaults/__init__.py -> /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_3.5/build/statsd/defaults
copying statsd/defaults/env.py -> /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_3.5/build/statsd/defaults
copying statsd/defaults/django.py -> /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_3.5/build/statsd/defaults
running egg_info
writing statsd.egg-info/PKG-INFO
writing dependency_links to statsd.egg-info/dependency_links.txt
writing top-level names to statsd.egg-info/top_level.txt
reading manifest file 'statsd.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'statsd.egg-info/SOURCES.txt'
I: pybuild base:184: /usr/bin/python3 setup.py build 
running build
running build_py
creating /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_3.4/build/statsd
copying statsd/__init__.py -> /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_3.4/build/statsd
copying statsd/tests.py -> /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_3.4/build/statsd
copying statsd/client.py -> /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_3.4/build/statsd
creating /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_3.4/build/statsd/defaults
copying statsd/defaults/__init__.py -> /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_3.4/build/statsd/defaults
copying statsd/defaults/env.py -> /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_3.4/build/statsd/defaults
copying statsd/defaults/django.py -> /home/lamby/temp/cdt.20151215162938.5GUj6SZkHy/python-statsd-3.2.1/.pybuild/pythonX.Y_3.4/build/statsd/defaults
running egg_info
writing top-level names to statsd.egg-info/top_level.txt
writing dependency_links to statsd.egg-info/dependency_links.txt
writing statsd.egg-info/PKG-INFO
reading manifest file 'statsd.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'statsd.egg-info/SOURCES.txt'
   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
dpkg-buildpackage: error: debian/rules build gave error exit status 2
