Message190057
Code also suggests that this function should be elsewhere, such as in iobinding. This should be in the same place as regular open, wherever that is, since it is an alternative open.
Document should be upgraded a bit: "Load module opens Python-coded modules on sys.path in an editor window. The default name is the currently selected text, if any."
Tests should be added with this issue. This is the smallest dialog, and the structure of the revised code (#18055) gives a skeleton for a testcase: test_python_module (window open), test_builtin_module (Exception), test_bad_path (different Exception), and maybe even test_bad loader. We should look at tkinter tests for simulating name entry and click. |
|
Date |
User |
Action |
Args |
2013-05-26 03:48:37 | terry.reedy | set | recipients:
+ terry.reedy, roger.serwy |
2013-05-26 03:48:37 | terry.reedy | set | messageid: <1369540117.58.0.797482167205.issue18064@psf.upfronthosting.co.za> |
2013-05-26 03:48:37 | terry.reedy | link | issue18064 messages |
2013-05-26 03:48:37 | terry.reedy | create | |
|