Kaydet (Commit) d2d5bd8b authored tarafından Miss Islington (bot)'s avatar Miss Islington (bot) Kaydeden (comit) Ned Deily

bpo-32872: Avoid regrtest compatibility issue with namespace packages. (GH-6276) (#6277)

(cherry picked from commit e52ac045)
Co-authored-by: 's avatarNed Deily <nad@python.org>
üst 211c0dbc
......@@ -57,7 +57,7 @@ def setup_tests(ns):
if hasattr(module, '__path__'):
for index, path in enumerate(module.__path__):
module.__path__[index] = os.path.abspath(path)
if hasattr(module, '__file__'):
if getattr(module, '__file__', None):
module.__file__ = os.path.abspath(module.__file__)
# MacOSX (a.k.a. Darwin) has a default stack size that is too small
......
Avoid regrtest compatibility issue with namespace packages.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment