mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-16 02:27:06 +08:00
Move namespace tests to examples
This commit is contained in:
9
test/examples/namespace_package/ns1/pkg/__init__.py
Normal file
9
test/examples/namespace_package/ns1/pkg/__init__.py
Normal file
@@ -0,0 +1,9 @@
|
||||
foo = 'ns1!'
|
||||
|
||||
# this is a namespace package
|
||||
try:
|
||||
import pkg_resources
|
||||
pkg_resources.declare_namespace(__name__)
|
||||
except ImportError:
|
||||
import pkgutil
|
||||
__path__ = pkgutil.extend_path(__path__, __name__)
|
||||
1
test/examples/namespace_package/ns1/pkg/ns1_file.py
Normal file
1
test/examples/namespace_package/ns1/pkg/ns1_file.py
Normal file
@@ -0,0 +1 @@
|
||||
foo = 'ns1_file!'
|
||||
@@ -0,0 +1 @@
|
||||
foo = 'ns1_folder!'
|
||||
Reference in New Issue
Block a user