]> granicus.if.org Git - python/commitdiff
#17484: add tests for getpass.
authorR David Murray <rdmurray@bitdance.com>
Mon, 8 Apr 2013 05:48:22 +0000 (01:48 -0400)
committerR David Murray <rdmurray@bitdance.com>
Mon, 8 Apr 2013 05:48:22 +0000 (01:48 -0400)
Patch by Thomas Fenzl.

Lib/getpass.py
Lib/test/test_sundry.py
Misc/ACKS

index 53689e964d9c2e46c05276dc01912ccca348718c..6ec6c78824b784619835f97e84ae34fc7af83687 100644 (file)
@@ -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)
index a364194b9e54be1a9b807010c165754757f97bf0..84fb0dba702c1824a72e77c1de6f0026be40d58f 100644 (file)
@@ -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:
index 56da6cb4240a822baf25a90338971c8c98ac8cd7..a29747bf95f078f58295aadb26ef0953e7b6fdad 100644 (file)
--- 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