[docs] [issue36597] Travis CI: doctest failure

Inada Naoki songofacandy at gmail.com
Thu Apr 11 03:33:07 EDT 2019


On Thu, Apr 11, 2019 at 11:49 AM STINNER Victor <report at bugs.python.org> wrote:
>
> 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'>

I'm not sure where "obj is dead or exiting" came from.

> File "library/datetime.rst", line 686, in default
> Failed example:
>     d.strftime("%A %d. %B %Y")
> Expected:
>     'Monday 11. March 2002'
> Got:
>     'lundi 11. mars 2002'

It seems it is caused by non English locale.

> File "library/collections.rst", line 914, in default
> Failed example:
>     p._asdict()
> Expected:
>     {'x': 11, 'y': 22}
> Got:
>     OrderedDict([('x', 11), ('y', 22)])

You may run doctest with existing Python, not Python 3.8.

> File "library/unittest.mock.rst", line ?, in default
> Failed example:
>     mock.call_args.args
> Expected:
>     (3, 4)
> Got:
>     args

I'm not sure about this.
-- 
Inada Naoki  <songofacandy at gmail.com>


More information about the docs mailing list