diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2020-12-20 20:19:49 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-01-03 06:26:21 -0500 |
commit | 7ff93a9740da5dec4eba6c6cad288d25a472d75a (patch) | |
tree | b81243f1508e4727dc28094c48be84ac6ae07706 /tests/test_results.py | |
parent | 12c5fcd57fd1cce3bc3563732f5502f5e943c0e0 (diff) | |
download | python-coveragepy-git-7ff93a9740da5dec4eba6c6cad288d25a472d75a.tar.gz |
Use set literals
Diffstat (limited to 'tests/test_results.py')
-rw-r--r-- | tests/test_results.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_results.py b/tests/test_results.py index 86806cfd..377c150b 100644 --- a/tests/test_results.py +++ b/tests/test_results.py @@ -114,7 +114,7 @@ def test_should_fail_under_invalid_value(): @pytest.mark.parametrize("statements, lines, result", [ - (set([1,2,3,4,5,10,11,12,13,14]), set([1,2,5,10,11,13,14]), "1-2, 5-11, 13-14"), + ({1,2,3,4,5,10,11,12,13,14}, {1,2,5,10,11,13,14}, "1-2, 5-11, 13-14"), ([1,2,3,4,5,10,11,12,13,14,98,99], [1,2,5,10,11,13,14,99], "1-2, 5-11, 13-14, 99"), ([1,2,3,4,98,99,100,101,102,103,104], [1,2,99,102,103,104], "1-2, 99, 102-104"), ([17], [17], "17"), @@ -128,8 +128,8 @@ def test_format_lines(statements, lines, result): @pytest.mark.parametrize("statements, lines, arcs, result", [ ( - set([1,2,3,4,5,10,11,12,13,14]), - set([1,2,5,10,11,13,14]), + {1,2,3,4,5,10,11,12,13,14}, + {1,2,5,10,11,13,14}, (), "1-2, 5-11, 13-14" ), |