]> granicus.if.org Git - python/commit
bpo-32991: Restore expectation that inspect.getfile raises TypeError on namespace...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 6 Mar 2018 15:16:11 +0000 (07:16 -0800)
committerJason R. Coombs <jaraco@jaraco.com>
Tue, 6 Mar 2018 15:16:11 +0000 (10:16 -0500)
commit5a0c3987abd6a71b4fadeb525477eb5f560e8514
treec122b4a136212f234af8add291d455dfc0164c7f
parent31e2b76f7bbcb8278748565252767a8b7790ff27
bpo-32991: Restore expectation that inspect.getfile raises TypeError on namespace package (GH-5980) (GH-5997)

* 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.
(cherry picked from commit b9650a04a81355c8a7dcd0464c28febfb4bfc0a9)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Lib/inspect.py
Lib/test/test_doctest.py