mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
#18116: backport fix to 3.3 since real-world failure mode demonstrated.
In issue 20074 it was pointed out that getpass would fail with a traceback if stdin was, for example /dev/null, which is a non-unlikely scenario. Also backported the tests from issue 17484 as modified by issue 18116. (What I really did was copy getpass.py and test_getpass.py from their state on tip as of 17bd04fbf3d3).
This commit is contained in:
parent
5eb01530b2
commit
ecff5e51a5
4 changed files with 213 additions and 45 deletions
|
@ -41,7 +41,6 @@ class TestUntestedModules(unittest.TestCase):
|
|||
|
||||
import encodings
|
||||
import formatter
|
||||
import getpass
|
||||
import html.entities
|
||||
import imghdr
|
||||
import keyword
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue