summaryrefslogtreecommitdiff
path: root/tests/test_execfile.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-08-09 16:36:14 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-08-09 16:56:38 -0400
commit6c8ccb13e0dc78bed148fb0c1626e93429704a30 (patch)
treeeac3cd95c4932c7a83dbe7652e2fd52a9db65048 /tests/test_execfile.py
parentf5621baca33e193f03286acf998a92ac67f3b723 (diff)
downloadpython-coveragepy-git-6c8ccb13e0dc78bed148fb0c1626e93429704a30.tar.gz
test: a part-covered comprehension
The comprehension would only completely finish (->exit) if the assert was going to fail. So we expect it to not finish.
Diffstat (limited to 'tests/test_execfile.py')
-rw-r--r--tests/test_execfile.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_execfile.py b/tests/test_execfile.py
index fe02f5fe..c0ed2d48 100644
--- a/tests/test_execfile.py
+++ b/tests/test_execfile.py
@@ -4,13 +4,11 @@
"""Tests for coverage.execfile"""
import compileall
-import fnmatch
import json
import os
import os.path
import pathlib
import re
-import sys
import pytest
@@ -107,7 +105,7 @@ class RunFileTest(CoverageTest):
class RunPycFileTest(CoverageTest):
"""Test cases for `run_python_file`."""
- def make_pyc(self): # pylint: disable=inconsistent-return-statements
+ def make_pyc(self):
"""Create a .pyc file, and return the path to it."""
if env.JYTHON:
pytest.skip("Can't make .pyc files on Jython")