aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_getpass.py
Commit message (Collapse)AuthorAge
* gh-76912: Raise OSError from any failure in getpass.getuser() (#29739)Jacob Walls2023-11-27
| | | | * bpo-32731: Raise OSError from any failure in getpass.getuser() Previously, if the username was not set in certain environment variables, ImportError escaped on Windows systems, and it was possible for KeyError to escape on other systems if getpwuid() failed.
* bpo-40280: Address more test failures on Emscripten (GH-31050)Christian Heimes2022-02-05
| | | Co-authored-by: Brett Cannon <brett@python.org>
* #21169: fix getpass to use replace error handler on UnicodeEncodeError.R David Murray2014-04-13
| | | | | | | | | If the input stream encoding couldn't encode one or more of the non-ascii characters in the prompt, it would fail, throwing a UnicodeEncodeError. Now if that happens we re-encoding using the 'replace' error handler. Patch by Kushal Das.
* #18116: getpass no longer always falls back to stdin.R David Murray2013-07-10
| | | | | | | | Also fixes a resource warning that occurred when the fallback is taken. Patch by Serhiy Storchaka. (We couldn't figure out how to write tests for this.)
* #17699: Fix the new getpass test failures on windows.R David Murray2013-04-11
| | | | Patch by Zachary Ware.
* #17484: Actually add the getpass tests this time.R David Murray2013-04-08