summaryrefslogtreecommitdiff
path: root/tests/test_execfile.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_execfile.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_execfile.py')
-rw-r--r--tests/test_execfile.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_execfile.py b/tests/test_execfile.py
index 3cdd1ed9..ec8cd180 100644
--- a/tests/test_execfile.py
+++ b/tests/test_execfile.py
@@ -14,7 +14,6 @@ import sys
import pytest
from coverage import env
-from coverage.backward import binary_bytes
from coverage.execfile import run_python_file, run_python_module
from coverage.files import python_reported_file
from coverage.misc import NoCode, NoSource
@@ -151,7 +150,7 @@ class RunPycFileTest(CoverageTest):
# Jam Python 2.1 magic number into the .pyc file.
with open(pycfile, "r+b") as fpyc:
fpyc.seek(0)
- fpyc.write(binary_bytes([0x2a, 0xeb, 0x0d, 0x0a]))
+ fpyc.write(bytes([0x2a, 0xeb, 0x0d, 0x0a]))
with pytest.raises(NoCode, match="Bad magic number in .pyc file"):
run_python_file([pycfile])