aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_traversal.py2
-rw-r--r--test/test_utils.py5
2 files changed, 1 insertions, 6 deletions
diff --git a/test/test_traversal.py b/test/test_traversal.py
index d48606e99..52ea19fab 100644
--- a/test/test_traversal.py
+++ b/test/test_traversal.py
@@ -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):
diff --git a/test/test_utils.py b/test/test_utils.py
index b5f35736b..835774a91 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -72,7 +72,6 @@ from yt_dlp.utils import (
intlist_to_bytes,
iri_to_uri,
is_html,
- join_nonempty,
js_to_json,
limit_length,
locked_file,
@@ -2158,10 +2157,6 @@ Line 1
assert int_or_none(v=10) == 10, 'keyword passed positional should call function'
assert int_or_none(scale=0.1)(10) == 100, 'call after partial application should call the function'
- assert callable(join_nonempty(delim=', ')), 'varargs positional should apply partially'
- assert callable(join_nonempty()), 'varargs positional should apply partially'
- assert join_nonempty(None, delim=', ') == '', 'passed varargs should call the function'
-
if __name__ == '__main__':
unittest.main()