Message339933
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> |
|
Date |
User |
Action |
Args |
2019-04-11 07:33:36 | methane | set | recipients:
+ methane, vstinner, mdk |
2019-04-11 07:33:36 | methane | link | issue36597 messages |
2019-04-11 07:33:36 | methane | create | |
|