We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3790a61 commit 901add0Copy full SHA for 901add0
tests/test_cli.py
@@ -107,7 +107,10 @@ def test_visible_password():
107
108
# Test that the string is long as much as the original password,
109
# minus the needed carriage return.
110
- assert actual_output == "*" * len(password.strip()), actual_output
+ # Sometimes the output is duplicated (why?).
111
+ valid_length = len(password.strip())
112
+ occasional_length = valid_length * 2
113
+ assert len(actual_output) in (valid_length, occasional_length), actual_output
114
115
116
def test_invisible_password():
0 commit comments