mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #18409: Idle: add unittest for AutoComplete. Patch by Phil Webster.
This commit is contained in:
parent
3f9535b7f8
commit
e3fcfc240d
5 changed files with 186 additions and 4 deletions
|
@ -226,3 +226,8 @@ class AutoComplete:
|
|||
namespace = sys.modules.copy()
|
||||
namespace.update(__main__.__dict__)
|
||||
return eval(name, namespace)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
from unittest import main
|
||||
main('idlelib.idle_test.test_autocomplete', verbosity=2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue