diff options
author | Brett Cannon <brett@python.org> | 2013-06-01 03:18:39 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-06-01 03:18:39 (GMT) |
commit | 3e0651b5fa45031b858556292f5623e264addfd0 (patch) | |
tree | cbc860cfd294cb53ce0e37fa9dd320913054fad2 /Lib/test | |
parent | 0e75c0688673da4fbaceae0b75e20e953751e86a (diff) | |
download | cpython-3e0651b5fa45031b858556292f5623e264addfd0.zip cpython-3e0651b5fa45031b858556292f5623e264addfd0.tar.gz cpython-3e0651b5fa45031b858556292f5623e264addfd0.tar.bz2 |
Issue #18065: For frozen packages set __path__ to [].
Previously __path__ was set to [__name__], but that could lead to bad
results if someone managed to circumvent the frozen importer and
somehow ended up with a finder that thought __name__ was a legit
directory/location.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_importlib/frozen/test_loader.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_importlib/frozen/test_loader.py b/Lib/test/test_importlib/frozen/test_loader.py index 4b8ec15..8731bdc 100644 --- a/Lib/test/test_importlib/frozen/test_loader.py +++ b/Lib/test/test_importlib/frozen/test_loader.py @@ -24,7 +24,7 @@ class LoaderTests(abc.LoaderTests): module = machinery.FrozenImporter.load_module('__phello__') check = {'__name__': '__phello__', '__package__': '__phello__', - '__path__': ['__phello__'], + '__path__': [], '__loader__': machinery.FrozenImporter, } for attr, value in check.items(): |