Skip to content

Commit f6c04d4

Browse files
committed
test: Remove empty strings from completion results
1 parent 78ea339 commit f6c04d4

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
@@ -773,7 +773,9 @@ def startswith(self, prefix: str) -> bool:
773773
return self.output.startswith(prefix)
774774

775775
def _items(self) -> List[str]:
776-
return sorted([x.strip() for x in self.output.strip().splitlines()])
776+
return sorted(
777+
[x.strip() for x in self.output.strip().splitlines() if x]
778+
)
777779

778780
def __eq__(self, expected: object) -> bool:
779781
"""

0 commit comments

Comments
 (0)