Skip to content

Commit

Permalink
Rename lins to lst in test_pytypes.py to resolve codespell errors:
Browse files Browse the repository at this point in the history
```
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
```
  • Loading branch information
rwgk committed Feb 4, 2025
1 parent d0345df commit e8b292b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/test_pytypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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()
Expand Down

0 comments on commit e8b292b

Please sign in to comment.