diff options
author | Adam Gross <grossag@vmware.com> | 2020-11-17 13:44:55 -0500 |
---|---|---|
committer | Adam Gross <grossag@vmware.com> | 2020-11-17 13:44:55 -0500 |
commit | bac3074b9f700a020bfeaad37658d8a2db68cffd (patch) | |
tree | f6a1fa616bb08cf66938d57c5803cc7ec0e4b991 /test/fixture | |
parent | 54e4841387c4d3247a6529b259a5db75774311f5 (diff) | |
download | scons-git-bac3074b9f700a020bfeaad37658d8a2db68cffd.tar.gz |
Fix tests, implement smarter version of scanner
Diffstat (limited to 'test/fixture')
5 files changed, 7 insertions, 0 deletions
diff --git a/test/fixture/python_scanner/from_import_simple_package_module1_func.py b/test/fixture/python_scanner/from_import_simple_package_module1_func.py new file mode 100644 index 000000000..e9877fbe7 --- /dev/null +++ b/test/fixture/python_scanner/from_import_simple_package_module1_func.py @@ -0,0 +1 @@ +from simple_package.module1 import somefunc # noqa: F401
\ No newline at end of file diff --git a/test/fixture/python_scanner/from_nested1_import_multiple.py b/test/fixture/python_scanner/from_nested1_import_multiple.py new file mode 100644 index 000000000..2cdd47f05 --- /dev/null +++ b/test/fixture/python_scanner/from_nested1_import_multiple.py @@ -0,0 +1 @@ +from nested1 import module, nested2 # noqa: F401
\ No newline at end of file diff --git a/test/fixture/python_scanner/imports_unknown_files.py b/test/fixture/python_scanner/imports_unknown_files.py new file mode 100644 index 000000000..205918112 --- /dev/null +++ b/test/fixture/python_scanner/imports_unknown_files.py @@ -0,0 +1,3 @@ +import doesntexist +import notthere.something +from notthere import a, few, things
\ No newline at end of file diff --git a/test/fixture/python_scanner/simple_package/module1.py b/test/fixture/python_scanner/simple_package/module1.py index e69de29bb..6880c4728 100644 --- a/test/fixture/python_scanner/simple_package/module1.py +++ b/test/fixture/python_scanner/simple_package/module1.py @@ -0,0 +1,2 @@ +def somefunc(): + return
\ No newline at end of file diff --git a/test/fixture/python_scanner/simple_package/somefunc.py b/test/fixture/python_scanner/simple_package/somefunc.py new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/test/fixture/python_scanner/simple_package/somefunc.py |