Make it possible to get stdlib modules for project search

This commit is contained in:
Dave Halter
2020-03-07 19:42:27 +01:00
parent c159b9debd
commit f147cb1133
4 changed files with 75 additions and 33 deletions

View File

@@ -93,6 +93,10 @@ def test_load_save_project(tmpdir):
'examples.implicit_namespace_package.ns1',
'examples.implicit_namespace_package.ns2'],
dict(complete=True)),
# On sys path
('sys.path', ['sys.path'], {}),
('json.dumps', ['json.dumps', 'json.dumps'], {}), # stdlib + stub
]
)
@pytest.mark.skipif(sys.version_info < (3, 6), reason="Ignore Python 2, because EOL")