summaryrefslogtreecommitdiff
path: root/tests/test_backward.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_backward.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_backward.py')
-rw-r--r--tests/test_backward.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/test_backward.py b/tests/test_backward.py
deleted file mode 100644
index b40a174b..00000000
--- a/tests/test_backward.py
+++ /dev/null
@@ -1,24 +0,0 @@
-# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
-# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
-
-"""Tests that our version shims in backward.py are working."""
-
-from coverage.backward import iitems, binary_bytes, bytes_to_ints
-
-from tests.coveragetest import CoverageTest
-from tests.helpers import assert_count_equal
-
-
-class BackwardTest(CoverageTest):
- """Tests of things from backward.py."""
-
- def test_iitems(self):
- d = {'a': 1, 'b': 2, 'c': 3}
- items = [('a', 1), ('b', 2), ('c', 3)]
- assert_count_equal(list(iitems(d)), items)
-
- def test_binary_bytes(self):
- byte_values = [0, 255, 17, 23, 42, 57]
- bb = binary_bytes(byte_values)
- assert len(bb) == len(byte_values)
- assert byte_values == list(bytes_to_ints(bb))