From e8b292b03d377b0f880265d925e300fe29821658 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 4 Feb 2025 07:58:12 -0800 Subject: [PATCH] Rename `lins` to `lst` in test_pytypes.py to resolve codespell errors: ``` codespell................................................................Failed - hook id: codespell - exit code: 65 tests/test_pytypes.py:55: lins ==> lines, links, lions, loins, limns tests/test_pytypes.py:56: lins ==> lines, links, lions, loins, limns tests/test_pytypes.py:58: lins ==> lines, links, lions, loins, limns tests/test_pytypes.py:70: lins ==> lines, links, lions, loins, limns tests/test_pytypes.py:71: lins ==> lines, links, lions, loins, limns tests/test_pytypes.py:72: lins ==> lines, links, lions, loins, limns tests/test_pytypes.py:73: lins ==> lines, links, lions, loins, limns tests/test_pytypes.py:74: lins ==> lines, links, lions, loins, limns tests/test_pytypes.py:75: lins ==> lines, links, lions, loins, limns tests/test_pytypes.py:76: lins ==> lines, links, lions, loins, limns ``` --- tests/test_pytypes.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/test_pytypes.py b/tests/test_pytypes.py index 469137cc3c..18932311e7 100644 --- a/tests/test_pytypes.py +++ b/tests/test_pytypes.py @@ -52,10 +52,10 @@ def test_from_iterable(pytype, from_iter_func): def test_iterable(doc): assert doc(m.get_iterable) == "get_iterable() -> Iterable" - lins = [1, 2, 3] - i = m.get_first_item_from_iterable(lins) + lst = [1, 2, 3] + i = m.get_first_item_from_iterable(lst) assert i == 1 - i = m.get_second_item_from_iterable(lins) + i = m.get_second_item_from_iterable(lst) assert i == 2 @@ -67,13 +67,13 @@ def test_list(capture, doc): assert m.list_no_args() == [] assert m.list_ssize_t() == [] assert m.list_size_t() == [] - lins = [1, 2] - m.list_insert_ssize_t(lins) - assert lins == [1, 83, 2] - m.list_insert_size_t(lins) - assert lins == [1, 83, 2, 57] - m.list_clear(lins) - assert lins == [] + lst = [1, 2] + m.list_insert_ssize_t(lst) + assert lst == [1, 83, 2] + m.list_insert_size_t(lst) + assert lst == [1, 83, 2, 57] + m.list_clear(lst) + assert lst == [] with capture: lst = m.get_list()