summaryrefslogtreecommitdiff
path: root/tests/test_process.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_process.py')
-rw-r--r--tests/test_process.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_process.py b/tests/test_process.py
index c473cf9a..fcbcb9ba 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
+from tests.helpers import re_lines_text, xfail_pypy_3792
class ProcessTest(CoverageTest):
@@ -283,6 +283,7 @@ class ProcessTest(CoverageTest):
assert "rror" not in out
assert status == 1
+ @xfail_pypy_3792 # Because the file names aren't yet absolute.
def test_code_throws(self):
self.make_file("throw.py", """\
class MyException(Exception):
@@ -302,7 +303,7 @@ class ProcessTest(CoverageTest):
status, out = self.run_command_status("coverage run throw.py")
out2 = self.run_command("python throw.py")
if env.PYPY:
- # Pypy has an extra frame in the traceback for some reason
+ # PyPy has an extra frame in the traceback for some reason
out2 = re_lines_text("toplevel", out2, match=False)
assert out == out2
@@ -695,6 +696,7 @@ 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())