Skip to content

Commit 37ac634

Browse files
committed
test: pypy fixed their sys.path[0] difference, 3792
https://foss.heptapod.net/pypy/pypy/-/issues/3792
1 parent 3455622 commit 37ac634

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

tests/helpers.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,3 @@ def swallow_warnings(message=r".", category=CoverageWarning):
322322
env.PYVERSION[:2] == (3, 8) and env.PYPY and env.PYPYVERSION >= (7, 3, 10),
323323
reason="Avoid a PyPy bug: https://foss.heptapod.net/pypy/pypy/-/issues/3749",
324324
)
325-
326-
xfail_pypy_3792 = pytest.mark.xfail(
327-
env.PYBEHAVIOR.report_absolute_files and env.PYPY,
328-
reason="Avoid a PyPy bug: https://foss.heptapod.net/pypy/pypy/-/issues/3792",
329-
)

tests/test_process.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from coverage.files import abs_file, python_reported_file
2020

2121
from tests.coveragetest import CoverageTest, TESTS_DIR
22-
from tests.helpers import re_lines_text, xfail_pypy_3792
22+
from tests.helpers import re_lines_text
2323

2424

2525
class ProcessTest(CoverageTest):
@@ -695,7 +695,6 @@ def test_coverage_run_dashm_is_like_python_dashm(self):
695695
actual = self.run_command("coverage run -m process_test.try_execfile")
696696
self.assert_tryexecfile_output(expected, actual)
697697

698-
@xfail_pypy_3792 # Because the sys.path[0] isn't yet absolute.
699698
def test_coverage_run_dir_is_like_python_dir(self):
700699
with open(TRY_EXECFILE) as f:
701700
self.make_file("with_main/__main__.py", f.read())

0 commit comments

Comments
 (0)