[PKG-Openstack-devel] Bug#746118: python-httpretty: FTBFS: Tests failures
David Suárez
david.sephirot at gmail.com
Sun Apr 27 12:26:23 UTC 2014
Source: python-httpretty
Version: 0.8.0-1
Severity: serious
Tags: jessie sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20140426 qa-ftbfs
Justification: FTBFS on amd64
Hi,
During a rebuild of all packages in sid, your package failed to build on
amd64.
Relevant part (hopefully):
>
> A content-type of application/json should parse a valid json body ... ok
> A content-type of application/json with an invalid json body should return the content unaltered ... ok
> A content-type of x-www-form-urlencoded with a valid queryparam body should return parsed content ... ok
> A non-handled content type request's post body should return the content unaltered ... ok
> httpretty.last_request() should return httpretty.core.last_request ... ok
>
> ======================================================================
> FAIL: HTTPretty should not raise a RuntimeError when the fakesocket is used in
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
> self.test(*self.arg)
> File "/«PKGBUILDDIR»/tests/unit/test_httpretty.py", line 96, in test_httpretty_should_not_raise_on_socket_send_when_uri_not_registered
> ).should_not.throw(RuntimeError)
> File "/usr/lib/python2.7/dist-packages/sure/__init__.py", line 376, in wrapper
> value = func(self, *args, **kw)
> File "/usr/lib/python2.7/dist-packages/sure/__init__.py", line 788, in throw
> raise AssertionError(err)
> AssertionError: <bound method socket.sendto of <httpretty.core.socket object at 0x2ba39bf51590>> called with args [] and kwargs {} should not raise <type 'exceptions.RuntimeError'> but raised sendto() takes 2 or 3 arguments (0 given)
>
> ======================================================================
> FAIL: tests.unit.test_httpretty.test_global_boolean_enabled
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
> self.test(*self.arg)
> File "/«PKGBUILDDIR»/tests/unit/test_httpretty.py", line 239, in test_global_boolean_enabled
> expect(HTTPretty.is_enabled()).to.be.falsy
> File "/usr/lib/python2.7/dist-packages/sure/__init__.py", line 426, in __getattr__
> return getattr(self._ab, name)
> File "/usr/lib/python2.7/dist-packages/sure/__init__.py", line 376, in wrapper
> value = func(self, *args, **kw)
> File "/usr/lib/python2.7/dist-packages/sure/__init__.py", line 570, in falsy
> assert not bool(self.obj), msg
> AssertionError: expected `True` to be falsy
>
> ======================================================================
> FAIL: tests.unit.test_httpretty.test_fake_socket_passes_through_setblocking
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
> self.test(*self.arg)
> File "/«PKGBUILDDIR»/tests/unit/test_httpretty.py", line 280, in test_fake_socket_passes_through_setblocking
> s.truesock.setblocking.assert_called_with(0)
> File "/usr/lib/python2.7/dist-packages/mock.py", line 844, in assert_called_with
> raise AssertionError(msg)
> AssertionError: Expected call: setblocking(0)
> Actual call: setblocking()
>
> ======================================================================
> FAIL: tests.unit.test_httpretty.test_fake_socket_passes_through_getsockopt
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
> self.test(*self.arg)
> File "/«PKGBUILDDIR»/tests/unit/test_httpretty.py", line 297, in test_fake_socket_passes_through_getsockopt
> s.truesock.getsockopt.assert_called_with(socket.SOL_SOCKET, 1)
> File "/usr/lib/python2.7/dist-packages/mock.py", line 844, in assert_called_with
> raise AssertionError(msg)
> AssertionError: Expected call: getsockopt(1, 1)
> Actual call: getsockopt()
>
> ======================================================================
> FAIL: tests.unit.test_httpretty.test_fake_socket_passes_through_shutdown
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
> self.test(*self.arg)
> File "/«PKGBUILDDIR»/tests/unit/test_httpretty.py", line 353, in test_fake_socket_passes_through_shutdown
> s.truesock.shutdown.assert_called_with(socket.SHUT_RD)
> File "/usr/lib/python2.7/dist-packages/mock.py", line 844, in assert_called_with
> raise AssertionError(msg)
> AssertionError: Expected call: shutdown(0)
> Actual call: shutdown()
>
> Name Stmts Miss Cover Missing
> ------------------------------------------------
> httpretty 23 0 100%
> httpretty.compat 10 0 100%
> httpretty.core 535 120 78% 392-394, 414, 423, 426, 429, 432, 439, 443-449, 453, 457, 462, 480-482, 486, 492, 515-516, 532, 554, 557, 562-563, 597-599, 632-633, 654, 691, 717, 727-730, 738, 744-768, 774, 787-791, 796-833, 838-847, 878, 881-884, 898-899, 904, 939-940, 978-979, 995-1020
> httpretty.errors 3 0 100%
> httpretty.http 28 0 100%
> httpretty.utils 10 0 100%
> ------------------------------------------------
> TOTAL 609 120 80%
> ----------------------------------------------------------------------
> Ran 48 tests in 0.127s
>
> FAILED (failures=5)
> make[1]: *** [override_dh_auto_test] Error 1
The full build log is available from:
http://aws-logs.debian.net/ftbfs-logs/2014/04/26/python-httpretty_0.8.0-1_unstable.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.
More information about the Openstack-devel
mailing list