summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-08-27 06:36:10 -0400
committerNed Batchelder <ned@nedbatchelder.com>2022-08-27 06:36:10 -0400
commit37ac634031e0cf43c4fe63249f79c025609b53a2 (patch)
tree57bc5d976d4273aa49612ecf35b9606a84a139e1
parent3455622cd4927639c4cc3ca608190ef8dc7705f4 (diff)
downloadpython-coveragepy-git-37ac634031e0cf43c4fe63249f79c025609b53a2.tar.gz
test: pypy fixed their sys.path[0] difference, 3792
https://foss.heptapod.net/pypy/pypy/-/issues/3792
-rw-r--r--tests/helpers.py5
-rw-r--r--tests/test_process.py3
2 files changed, 1 insertions, 7 deletions
diff --git a/tests/helpers.py b/tests/helpers.py
index f593c72c..446edce0 100644
--- a/tests/helpers.py
+++ b/tests/helpers.py
@@ -322,8 +322,3 @@ xfail_pypy_3749 = pytest.mark.xfail(
env.PYVERSION[:2] == (3, 8) and env.PYPY and env.PYPYVERSION >= (7, 3, 10),
reason="Avoid a PyPy bug: https://foss.heptapod.net/pypy/pypy/-/issues/3749",
)
-
-xfail_pypy_3792 = pytest.mark.xfail(
- env.PYBEHAVIOR.report_absolute_files and env.PYPY,
- reason="Avoid a PyPy bug: https://foss.heptapod.net/pypy/pypy/-/issues/3792",
-)
diff --git a/tests/test_process.py b/tests/test_process.py
index cbfc5557..b76846e5 100644
--- a/tests/test_process.py
+++ b/tests/test_process.py
@@ -19,7 +19,7 @@ from coverage.data import line_counts
from coverage.files import abs_file, python_reported_file
from tests.coveragetest import CoverageTest, TESTS_DIR
-from tests.helpers import re_lines_text, xfail_pypy_3792
+from tests.helpers import re_lines_text
class ProcessTest(CoverageTest):
@@ -695,7 +695,6 @@ class EnvironmentTest(CoverageTest):
actual = self.run_command("coverage run -m process_test.try_execfile")
self.assert_tryexecfile_output(expected, actual)
- @xfail_pypy_3792 # Because the sys.path[0] isn't yet absolute.
def test_coverage_run_dir_is_like_python_dir(self):
with open(TRY_EXECFILE) as f:
self.make_file("with_main/__main__.py", f.read())