Skip to content

Commit aaebd24

Browse files
committed
test: Remove empty strings from completion results
1 parent 8074741 commit aaebd24

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/t/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,9 @@ def startswith(self, prefix: str) -> bool:
776776
return self.output.startswith(prefix)
777777

778778
def _items(self) -> List[str]:
779-
return sorted([x.strip() for x in self.output.strip().splitlines()])
779+
return sorted(
780+
[x.strip() for x in self.output.strip().splitlines() if x]
781+
)
780782

781783
def __eq__(self, expected: object) -> bool:
782784
"""

0 commit comments

Comments
 (0)