From 319d58d599cdc75b27b5518b2c4ab9021655c6f0 Mon Sep 17 00:00:00 2001 From: R David Murray Date: Mon, 8 Apr 2013 01:48:22 -0400 Subject: [PATCH] #17484: add tests for getpass. Patch by Thomas Fenzl. --- Lib/getpass.py | 1 + Lib/test/test_sundry.py | 2 +- Misc/ACKS | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/getpass.py b/Lib/getpass.py index 53689e964d9..6ec6c78824b 100644 --- a/Lib/getpass.py +++ b/Lib/getpass.py @@ -40,6 +40,7 @@ def unix_getpass(prompt='Password: ', stream=None): """ fd = None tty = None + passwd = None try: # Always try reading and writing directly on the tty first. fd = os.open('/dev/tty', os.O_RDWR|os.O_NOCTTY) diff --git a/Lib/test/test_sundry.py b/Lib/test/test_sundry.py index a364194b9e5..84fb0dba702 100644 --- a/Lib/test/test_sundry.py +++ b/Lib/test/test_sundry.py @@ -6,7 +6,7 @@ import unittest class TestUntestedModules(unittest.TestCase): def test_untested_modules_can_be_imported(self): - untested = ('bdb', 'encodings', 'formatter', 'getpass', 'imghdr', + untested = ('bdb', 'encodings', 'formatter', 'imghdr', 'keyword', 'macurl2path', 'nturl2path', 'tabnanny') with support.check_warnings(quiet=True): for name in untested: diff --git a/Misc/ACKS b/Misc/ACKS index 56da6cb4240..a29747bf95f 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -367,6 +367,7 @@ Michael Farrell Troy J. Farrell Mark Favas Boris Feld +Thomas Fenzl Niels Ferguson Sebastian Fernandez Florian Festi