This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author methane
Recipients docs@python, mdk, methane, vstinner
Date 2019-04-11.07:33:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAEfz+TxHoHLH8uW=37DDWvuYYpdgF4ndX+xY5yWxWcBnjLS7nA@mail.gmail.com>
In-reply-to <1554950965.55.0.0913094506207.issue36597@roundup.psfhosted.org>
Content
On Thu, Apr 11, 2019 at 11:49 AM STINNER Victor <report@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@gmail.com>
History
Date User Action Args
2019-04-11 07:33:36methanesetrecipients: + methane, vstinner, mdk
2019-04-11 07:33:36methanelinkissue36597 messages
2019-04-11 07:33:36methanecreate