Skip to content

Commit 4c30b3a

Browse files
committed
Ignorining coverage warnings was a bad idea.
1 parent 7895b1f commit 4c30b3a

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

tests/test_pipe.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ def test_uniq():
55
assert list(() | pipe.uniq) == []
66

77

8+
def test_take_zero():
9+
assert list([1, 2, 3] | pipe.take(0)) == []
10+
11+
12+
def test_take_one():
13+
assert list([1, 2, 3] | pipe.take(1)) == [1]
14+
15+
816
def test_empty_iterable():
917
assert list([] | pipe.take(999)) == []
1018

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ exclude_lines =
1515
if __name__ == .__main__.:
1616

1717
[tox]
18-
envlist = py3{8,9,10,11,12,13}, flake8, mypy, black, pylint, coverage
18+
envlist = py3{8,9,10,11,12,13}, flake8, black, pylint, coverage
1919
isolated_build = True
2020

2121
[testenv]
@@ -29,7 +29,7 @@ setenv =
2929

3030
[testenv:coverage]
3131
deps = coverage
32-
depends = py38, py39, py310, py311, py312
32+
depends = py38, py39, py310, py311, py312, py313
3333
parallel_show_output = True
3434
skip_install = True
3535
setenv = COVERAGE_FILE={toxworkdir}/.coverage

0 commit comments

Comments
 (0)