]> granicus.if.org Git - python/commit
bpo-32991: Restore expectation that inspect.getfile raises TypeError on namespace...
authorJason R. Coombs <jaraco@jaraco.com>
Mon, 5 Mar 2018 23:29:08 +0000 (18:29 -0500)
committerGitHub <noreply@github.com>
Mon, 5 Mar 2018 23:29:08 +0000 (18:29 -0500)
commitb9650a04a81355c8a7dcd0464c28febfb4bfc0a9
tree300f17ad90d32a049c7b0ce53b434679dac86a06
parent6921e73e33edc3c61bc2d78ed558eaa22a89a564
bpo-32991: Restore expectation that inspect.getfile raises TypeError on namespace package (GH-5980)

* bpo-32991: Add test capturing expectation.

DocTestFinder.find should return an empty list for doctests in a namespace package.

* bpo-32991: Restore expectation that inspect.getfile on a namespace package raises TypeError.
Lib/inspect.py
Lib/test/test_doctest.py