[docs] [issue36597] Travis CI: doctest failure
Inada Naoki
report at bugs.python.org
Thu Apr 11 04:23:41 EDT 2019
Inada Naoki <songofacandy at gmail.com> added the comment:
On Thu, Apr 11, 2019 at 5:19 PM STINNER Victor <report at bugs.python.org> wrote:
> Really? When I click on https://travis-ci.org/python/cpython/jobs/518572326 (the second link of my first message), I still see:
>
> """
> Warning, treated as error:
> **********************************************************************
> File "library/unittest.mock-examples.rst", line ?, in default
> Failed example:
> m.one().two().three()
> Expected:
> <MagicMock name='mock.one().two().three()' id='...'>
> Got:
> obj dead or exiting
> <MagicMock name='mock.one().two().three()' id='140222049958880'>
> Makefile:44: recipe for target 'build' failed
> make[1]: *** [build] Error 2
> """
>
> This error comes from Travis CI.
It is "obj dead or exiting" error. I didn't say it is caused by your
environment.
It is only error happened in Travis.
>
> > I suspect your environment (locale and venv used to run doctest), not your changes.
>
> You can ignore the date failure, but how is the following error related to my environment?
>
> """
> File "library/collections.rst", line 914, in default
> Failed example:
> p._asdict()
> Expected:
> {'x': 11, 'y': 22}
> Got:
> OrderedDict([('x', 11), ('y', 22)])
namedtuple._asdict() changed to return dict instead of OrderedDict.
If your venv is created before the change, this error can be happened.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36597>
_______________________________________
More information about the docs
mailing list