Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 319d58d

Browse files
committed
#17484: add tests for getpass.
Patch by Thomas Fenzl.
1 parent 7efa3b8 commit 319d58d

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/getpass.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def unix_getpass(prompt='Password: ', stream=None):
4040
"""
4141
fd = None
4242
tty = None
43+
passwd = None
4344
try:
4445
# Always try reading and writing directly on the tty first.
4546
fd = os.open('/dev/tty', os.O_RDWR|os.O_NOCTTY)

Lib/test/test_sundry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class TestUntestedModules(unittest.TestCase):
88
def test_untested_modules_can_be_imported(self):
9-
untested = ('bdb', 'encodings', 'formatter', 'getpass', 'imghdr',
9+
untested = ('bdb', 'encodings', 'formatter', 'imghdr',
1010
'keyword', 'macurl2path', 'nturl2path', 'tabnanny')
1111
with support.check_warnings(quiet=True):
1212
for name in untested:

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ Michael Farrell
367367
Troy J. Farrell
368368
Mark Favas
369369
Boris Feld
370+
Thomas Fenzl
370371
Niels Ferguson
371372
Sebastian Fernandez
372373
Florian Festi

0 commit comments

Comments
 (0)