Opened 5 years ago

Last modified 4 years ago

#3378 new defect

tests fail with mock-1.3.0

Reported by: dustin Owned by:
Priority: patches-accepted Milestone: 0.9.+
Version: 0.8.12 Keywords:
Cc:

Description

[ERROR]
Traceback (most recent call last):
  File "/home/dustin/code/buildbot/t/buildbot/sandbox/lib/python2.7/site-packages/twisted/internet/defer.py", line 1128, in _inlineCallbacks
    result = g.send(result)
  File "/home/dustin/code/buildbot/t/buildbot/master/buildbot/test/unit/test_data_builders.py", line 226, in test__masterDeactivated
    self.rtype.updateBuilderList.assert_called_with(10, [])
  File "/home/dustin/code/buildbot/t/buildbot/sandbox/lib/python2.7/site-packages/mock/mock.py", line 937, in assert_called_with
    six.raise_from(AssertionError(_error_message(cause)), cause)
  File "/home/dustin/code/buildbot/t/buildbot/sandbox/lib/python2.7/site-packages/six.py", line 718, in raise_from
    raise value
exceptions.AssertionError: Expected call: mock(10, [])
Actual call: mock(10, [])
too many positional arguments

buildbot.test.unit.test_data_builders.Builder.test__masterDeactivated
===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/home/dustin/code/buildbot/t/buildbot/sandbox/lib/python2.7/site-packages/twisted/internet/defer.py", line 1128, in _inlineCallbacks
    result = g.send(result)
  File "/home/dustin/code/buildbot/t/buildbot/master/buildbot/test/unit/test_reporters_mail.py", line 400, in test_buildMessage_nominal
    mn.findInterrestedUsersEmails.assert_called_with([u'me@foo'])
  File "/home/dustin/code/buildbot/t/buildbot/sandbox/lib/python2.7/site-packages/mock/mock.py", line 937, in assert_called_with
    six.raise_from(AssertionError(_error_message(cause)), cause)
  File "/home/dustin/code/buildbot/t/buildbot/sandbox/lib/python2.7/site-packages/six.py", line 718, in raise_from
    raise value
exceptions.AssertionError: Expected call: mock([u'me@foo'])
Actual call: mock([u'me@foo'])
too many positional arguments

buildbot.test.unit.test_reporters_mail.TestMailNotifier.test_buildMessage_nominal
===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/home/dustin/code/buildbot/t/buildbot/sandbox/lib/python2.7/site-packages/twisted/internet/defer.py", line 1128, in _inlineCallbacks
    result = g.send(result)
  File "/home/dustin/code/buildbot/t/buildbot/master/buildbot/test/unit/test_www_auth.py", line 174, in test_render
    self.rsrc.renderLogin.assert_called_with(mock.ANY)
  File "/home/dustin/code/buildbot/t/buildbot/sandbox/lib/python2.7/site-packages/mock/mock.py", line 937, in assert_called_with
    six.raise_from(AssertionError(_error_message(cause)), cause)
  File "/home/dustin/code/buildbot/t/buildbot/sandbox/lib/python2.7/site-packages/six.py", line 718, in raise_from
    raise value
exceptions.AssertionError: Expected call: mock(<ANY>)
Actual call: mock(<buildbot.test.util.www.FakeRequest object at 0x7f8b293f4850>)
too many positional arguments

buildbot.test.unit.test_www_auth.LoginResource.test_render

Looks like a bug in mock? Thankfully Travis doesn't have this version installed..

Change History (1)

Note: See TracTickets for help on using tickets.