[utils] Fix join_nonempty, add **kwargs to unpack (#11559)
Authored by: Grub4K
This commit is contained in:
parent
f2a4983df7
commit
39d79c9b9c
4 changed files with 4 additions and 10 deletions
|
|
@ -525,7 +525,7 @@ class TestTraversalHelpers:
|
|||
def test_unpack(self):
|
||||
assert unpack(lambda *x: ''.join(map(str, x)))([1, 2, 3]) == '123'
|
||||
assert unpack(join_nonempty)([1, 2, 3]) == '1-2-3'
|
||||
assert unpack(join_nonempty(delim=' '))([1, 2, 3]) == '1 2 3'
|
||||
assert unpack(join_nonempty, delim=' ')([1, 2, 3]) == '1 2 3'
|
||||
with pytest.raises(TypeError):
|
||||
unpack(join_nonempty)()
|
||||
with pytest.raises(TypeError):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue