19
19
from coverage .files import abs_file , python_reported_file
20
20
21
21
from tests .coveragetest import CoverageTest , TESTS_DIR
22
- from tests .helpers import re_lines_text
22
+ from tests .helpers import re_lines_text , xfail_pypy_3792
23
23
24
24
25
25
class ProcessTest (CoverageTest ):
@@ -283,6 +283,7 @@ def test_running_missing_file(self):
283
283
assert "rror" not in out
284
284
assert status == 1
285
285
286
+ @xfail_pypy_3792 # Because the file names aren't yet absolute.
286
287
def test_code_throws (self ):
287
288
self .make_file ("throw.py" , """\
288
289
class MyException(Exception):
@@ -302,7 +303,7 @@ def f2():
302
303
status , out = self .run_command_status ("coverage run throw.py" )
303
304
out2 = self .run_command ("python throw.py" )
304
305
if env .PYPY :
305
- # Pypy has an extra frame in the traceback for some reason
306
+ # PyPy has an extra frame in the traceback for some reason
306
307
out2 = re_lines_text ("toplevel" , out2 , match = False )
307
308
assert out == out2
308
309
@@ -695,6 +696,7 @@ def test_coverage_run_dashm_is_like_python_dashm(self):
695
696
actual = self .run_command ("coverage run -m process_test.try_execfile" )
696
697
self .assert_tryexecfile_output (expected , actual )
697
698
699
+ @xfail_pypy_3792 # Because the sys.path[0] isn't yet absolute.
698
700
def test_coverage_run_dir_is_like_python_dir (self ):
699
701
with open (TRY_EXECFILE ) as f :
700
702
self .make_file ("with_main/__main__.py" , f .read ())
0 commit comments