[users at bb.net] Unit Tests Failing after clean install

Dustin J. Mitchell dustin at v.igoro.us
Tue Oct 27 13:35:11 UTC 2015


Hi Justin --

What version of Buildbot do you have installed?

Most times, test failures like this are due to having multiple copies of
Buildbot installed in such a way that Python is finding some modules from
one version and some modules from another.  Did you, by chance, install
Buildbot with your system package manager (dnf or apt-get), then install it
systemwide with pip?

Dustin

On Mon, Oct 26, 2015 at 5:32 PM, Justin Fehr <Justin.Fehr at kinze.com> wrote:

> Hi all,
>
>
>
> I am setting up buildbot for the first time, after installing buildbot I
> ran the unit tests to confirm that everything is installed correctly. I
> received two errors and now am unsure of how to proceed. They are as
> follows:
>
>
>
>
> ===============================================================================
>
> [ERROR]
>
> Traceback (most recent call last):
>
>   File
> "/usr/local/lib/python2.7/dist-packages/buildbot/test/unit/test_process_buildstep.py",
> line 386, in test_updateSu
>
> mmary_running_empty_dict
>
>     step._step_status.setText.assert_not_called()
>
>   File "/usr/local/lib/python2.7/dist-packages/mock/mock.py", line 915, in
> assert_not_called
>
>     raise AssertionError(msg)
>
> exceptions.AssertionError: Expected 'setText' to not have been called.
> Called 1 times.
>
>
>
>
> buildbot.test.unit.test_process_buildstep.TestBuildStep.test_updateSummary_running_empty_dict
>
>
> ===============================================================================
>
> [ERROR]
>
> Traceback (most recent call last):
>
>   File
> "/usr/local/lib/python2.7/dist-packages/buildbot/test/unit/test_util.py",
> line 269, in test_broken_locale
>
>     config.error.assert_called()
>
>   File "/usr/local/lib/python2.7/dist-packages/mock/mock.py", line 721, in
> __getattr__
>
>     raise AttributeError(name)
>
> exceptions.AttributeError: assert_called
>
>
>
> buildbot.test.unit.test_util.FunctionalEnvironment.test_broken_locale
>
>
>
> Thanks,
>
>
>
> J
>
> ------------------------------
>
> Electronic Privacy Notice: This e-mail, and any attachments, contains
> information that is, or may be, covered by electronic communications
> privacy laws, and is confidential and proprietary in nature. If you are not
> the intended recipient, please be advised that retaining, using, copying,
> distributing, or otherwise disclosing this information is strictly
> prohibited. Instead, please reply to the sender that you have received this
> communication in error, and then immediately delete and/or destroy your
> copy. Thank you for your cooperation.
>
> _______________________________________________
> users mailing list
> users at buildbot.net
> https://lists.buildbot.net/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20151027/ff1c56be/attachment.html>


More information about the users mailing list