Skip to content

Commit 901add0

Browse files
committed
found the bug, unrelated from the change
1 parent 3790a61 commit 901add0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: tests/test_cli.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ def test_visible_password():
107107

108108
# Test that the string is long as much as the original password,
109109
# minus the needed carriage return.
110-
assert actual_output == "*" * len(password.strip()), actual_output
110+
# 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
111114

112115

113116
def test_invisible_password():

0 commit comments

Comments
 (0)