mirror of
https://github.com/python/cpython.git
synced 2025-11-12 07:02:33 +00:00
bpo-32872: Avoid regrtest compatibility issue with namespace packages. (GH-6276) (#6277)
(cherry picked from commit e52ac04597)
Co-authored-by: Ned Deily <nad@python.org>
This commit is contained in:
parent
211c0dbc6a
commit
d2d5bd8bc4
2 changed files with 2 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ def setup_tests(ns):
|
||||||
if hasattr(module, '__path__'):
|
if hasattr(module, '__path__'):
|
||||||
for index, path in enumerate(module.__path__):
|
for index, path in enumerate(module.__path__):
|
||||||
module.__path__[index] = os.path.abspath(path)
|
module.__path__[index] = os.path.abspath(path)
|
||||||
if hasattr(module, '__file__'):
|
if getattr(module, '__file__', None):
|
||||||
module.__file__ = os.path.abspath(module.__file__)
|
module.__file__ = os.path.abspath(module.__file__)
|
||||||
|
|
||||||
# MacOSX (a.k.a. Darwin) has a default stack size that is too small
|
# MacOSX (a.k.a. Darwin) has a default stack size that is too small
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
Avoid regrtest compatibility issue with namespace packages.
|
||||||
Loading…
Add table
Add a link
Reference in a new issue