autopkgtest: test_signatures (friends.tests.test_twitter.TestTwitter) failed

Bug #1223430 reported by Jean-Baptiste Lallement
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
friends (Ubuntu)
Fix Released
Undecided
Robert Bruce Park

Bug Description

The following test is failing autopkgtest:

python3 -m unittest discover

(process:23531): libnotify-WARNING **: Failed to connect to proxy
/usr/lib/python3.3/importlib/_bootstrap.py:313: UserWarning: Module friends was already imported from /tmp/tmp.7zFMNkYn1G/dsc0-build/friends-0.2.0+13.10.20130822/friends/__init__.py, but /usr/lib/python3/dist-packages is being added to sys.path
  return f(*args, **kwds)
..........................................................F............................................................................................................................................................................................
======================================================================
FAIL: test_signatures (friends.tests.test_twitter.TestTwitter)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.3/unittest/mock.py", line 1087, in patched
    return func(*args, **keywargs)
  File "/tmp/tmp.7zFMNkYn1G/dsc0-build/friends-0.2.0+13.10.20130822/friends/tests/test_twitter.py", line 120, in test_signatures
    method='GET')
  File "/usr/lib/python3.3/unittest/mock.py", line 737, in assert_called_once_with
    return self.assert_called_with(*args, **kwargs)
  File "/usr/lib/python3.3/unittest/mock.py", line 726, in assert_called_with
    raise AssertionError(msg)
AssertionError: Expected call: Downloader('http://example.com', params=None, headers={'Authorization': 'OAuth oauth_nonce="once%20upon%20a%20nonce", oauth_timestamp="1348690628", oauth_version="1.0", oauth_signature_method="HMAC-SHA1", oauth_consumer_key="consume", oauth_token="omega", oauth_signature="2MlC4DOqcAdCUmU647izPmxiL%2F0%3D"'}, method='GET', rate_limiter='limits')
Actual call: Downloader('http://example.com', params=None, headers={'Authorization': 'OAuth oauth_nonce="once%20upon%20a%20nonce", oauth_timestamp="1348690628", oauth_version="1.0", oauth_signature_method="HMAC-SHA1", oauth_consumer_key="consume", oauth_token="omega", oauth_signature="klnMTp3hH%2Fl3b5%2BmPtBlv%2BCulic%3D"'}, method='GET', rate_limiter='limits')

----------------------------------------------------------------------
Ran 247 tests in 1.857s

FAILED (failures=1)
make: *** [check] Error 1

http://jenkins.qa.ubuntu.com/job/saucy-adt-friends/ARCH=amd64,label=adt/99/

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: friends 0.2.0+13.10.20130822-0ubuntu1
ProcVersionSignature: Ubuntu 3.11.0-6.12-generic 3.11.0
Uname: Linux 3.11.0-6-generic x86_64
ApportVersion: 2.12.1-0ubuntu3
Architecture: amd64
Date: Tue Sep 10 12:09:47 2013
InstallationDate: Installed on 2013-09-03 (6 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130902)
MarkForUpload: True
SourcePackage: friends
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Revision history for this message
Robert Bruce Park (robru) wrote :

Just confirmed this locally, no idea what could possibly be causing this failure; I haven't touched that code in *months*. Also it's heavily mocked, so it's not like some outside web service is returning a different result to break this or something. Will look into it further when I get a bit of time.

Changed in friends (Ubuntu):
assignee: nobody → Robert Bruce Park (robru)
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package friends - 0.2.0+14.04.20131103-0ubuntu1

---------------
friends (0.2.0+14.04.20131103-0ubuntu1) trusty; urgency=low

  [ Robert Bruce Park ]
  * Save battery life by decreasing default polling frequency. (LP:
    #1238083)
  * Fix & re-enable failing twitter test. (LP: #1223430)

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 236
 -- Ubuntu daily release <email address hidden> Sun, 03 Nov 2013 00:41:35 +0000

Changed in friends (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.