bpo-36406: Handle namespace packages in doctest#12520
Conversation
|
Note to self and reviewer : I have originally added a fix to handle filename to None and finder is also documented to accept None. But the previous code seems to always default to |
Co-Authored-By: Brett Cannon <54418+brettcannon@users.noreply.github.com>
|
@warsaw anything to say before this gets merged? @tirkarthi if Barry doesn't say anything in a week just ping me and I will merge this. |
|
@brettcannon Ping for merge. Thanks. |
|
@tirkarthi thanks for the ping. I will merge this probably this week or next when I have the time. |
|
Thanks @tirkarthi for the PR, and @brettcannon for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8. |
(cherry picked from commit 8289e27) Co-authored-by: Xtreak <tir.karthi@gmail.com>
|
GH-17591 is a backport of this pull request to the 3.8 branch. |
(cherry picked from commit 8289e27) Co-authored-by: Xtreak <tir.karthi@gmail.com>
|
GH-17592 is a backport of this pull request to the 3.7 branch. |
|
Thanks @brettcannon and @methane for review :) |
Handle namespace packages in doctest where
__file__of empty package returns Nonehttps://bugs.python.org/issue36406