diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-01 14:04:02 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-01 16:24:37 -0400 |
commit | 775c14a764ff3fd32bcd25d91f4c0f635722ed50 (patch) | |
tree | 2f73d38468b11c4b5f9723265bb121352a13271f /tests/test_numbits.py | |
parent | e96ef93d18831630687b6c026bed89a1f9149c90 (diff) | |
download | python-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.py | 3 |
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): |