summaryrefslogtreecommitdiff
path: root/tests/test_numbits.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-01-31 10:10:47 -0500
committerNed Batchelder <ned@nedbatchelder.com>2021-01-31 10:10:47 -0500
commitd02be78c3a0ee3022be56c623bb9bdcad1e9acd4 (patch)
tree1e74153bb4741f6a9e2f1e1f55d2b9960a490bb3 /tests/test_numbits.py
parenta035bde3320a501720ae722dc6b54fe7ff5c8647 (diff)
downloadpython-coveragepy-git-d02be78c3a0ee3022be56c623bb9bdcad1e9acd4.tar.gz
style: fix long lines and avoid backslashesnedbat/unittest2pytest
Diffstat (limited to 'tests/test_numbits.py')
-rw-r--r--tests/test_numbits.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test_numbits.py b/tests/test_numbits.py
index 8216b628..fc27a093 100644
--- a/tests/test_numbits.py
+++ b/tests/test_numbits.py
@@ -121,10 +121,12 @@ class NumbitsSqliteFunctionTest(CoverageTest):
"(select numbits from data where id = 9)"
")"
)
+ expected = [
+ 7, 9, 14, 18, 21, 27, 28, 35, 36, 42, 45, 49,
+ 54, 56, 63, 70, 72, 77, 81, 84, 90, 91, 98, 99,
+ ]
answer = numbits_to_nums(list(res)[0][0])
- assert [7, 9, 14, 18, 21, 27, 28, 35, 36, 42, 45, 49,
- 54, 56, 63, 70, 72, 77, 81, 84, 90, 91, 98, 99] == \
- answer
+ assert expected == answer
def test_numbits_intersection(self):
res = self.cursor.execute(