Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:
I couldn't reproduce the change in result for consecutive calls on master branch. They should return the same value. ./python Python 3.9.0a6+ (heads/master:7f7e706d78, May 9 2020, 04:00:36) [GCC 7.5.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import unittest.mock >>> import inspect >>> import asyncio >>> inspect.iscoroutinefunction(unittest.mock.AsyncMock()) False >>> inspect.iscoroutinefunction(unittest.mock.AsyncMock()) False >>> inspect.iscoroutinefunction(unittest.mock.AsyncMock()) False ---------- components: +Library (Lib) -Tests _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40573> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com