summaryrefslogtreecommitdiff
path: root/tests/test_numbits.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-05-01 14:04:02 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-05-01 16:24:37 -0400
commit775c14a764ff3fd32bcd25d91f4c0f635722ed50 (patch)
tree2f73d38468b11c4b5f9723265bb121352a13271f /tests/test_numbits.py
parente96ef93d18831630687b6c026bed89a1f9149c90 (diff)
downloadpython-coveragepy-git-775c14a764ff3fd32bcd25d91f4c0f635722ed50.tar.gz
refactor: remove more unneeded backward.py shims
Gone are: - iitems - litems - iternext - to_bytes - to_string - binary_bytes - byte_to_int - bytes_to_ints - BUILTINS
Diffstat (limited to 'tests/test_numbits.py')
-rw-r--r--tests/test_numbits.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_numbits.py b/tests/test_numbits.py
index 946f8fcb..98399086 100644
--- a/tests/test_numbits.py
+++ b/tests/test_numbits.py
@@ -10,7 +10,6 @@ from hypothesis import example, given, settings
from hypothesis.strategies import sets, integers
from coverage import env
-from coverage.backward import byte_to_int
from coverage.numbits import (
nums_to_numbits, numbits_to_nums, numbits_union, numbits_intersection,
numbits_any_intersection, num_in_numbits, register_sqlite_functions,
@@ -33,7 +32,7 @@ if env.METACOV:
def good_numbits(numbits):
"""Assert that numbits is good."""
# It shouldn't end with a zero byte, that should have been trimmed off.
- assert (not numbits) or (byte_to_int(numbits[-1]) != 0)
+ assert (not numbits) or (numbits[-1] != 0)
class NumbitsOpTest(CoverageTest):