Skip to content

Commit 6bb99d3

Browse files
bkjohpicnixz
andauthored
accept leftover artifact removal suggestion from picnixz
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 58f86cd commit 6bb99d3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/test/test_getpass.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,7 @@ def test_rejects_non_string(self):
230230
getpass._check_echo_char(item)
231231

232232
def test_rejects_empty_string(self):
233-
for item in [""]:
234-
with self.assertRaises(ValueError):
235-
getpass._check_echo_char(item)
233+
self.assertRaises(ValueError, getpass.getpass, echo_char="")
236234

237235
if __name__ == "__main__":
238236
unittest.main()

0 commit comments

Comments
 (0)