Skip to content
Snippets Groups Projects
Yuya Nishihara's avatar
Yuya Nishihara authored
Since we've dropped a str cast at write() by f04bd381e8c0, ui.prompt() should
convert default to '' if it is None. Otherwise, write() would fail with
"TypeError: object of type 'NoneType' has no len()".

This patch includes the tests for both interactive and non-interactive cases
because "ui.askusername" was never tested.
89003c49
History
Name Last commit Last update