diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-03-20 09:43:29 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-03-20 09:43:29 -0400 |
commit | d0ee1989ec56dc039ad880c1d554e66dd4caddd8 (patch) | |
tree | b85a3b949dd1dac766695f15677959e67e28f48c /test/test_process.py | |
parent | b7e427abd66c45b094e9159b669490d36c0fb5bc (diff) | |
download | python-coveragepy-git-d0ee1989ec56dc039ad880c1d554e66dd4caddd8.tar.gz |
All the tests pass under PyPy: sys has a bogus __file__, Unicode is 4-byte, and pypy inserts an extra stack frame into tracebacks.
Diffstat (limited to 'test/test_process.py')
-rw-r--r-- | test/test_process.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_process.py b/test/test_process.py index b40eac12..05857b1d 100644 --- a/test/test_process.py +++ b/test/test_process.py @@ -226,6 +226,10 @@ class ProcessTest(CoverageTest): # same traceback. status, out = self.run_command_status("coverage run throw.py", 1) out2 = self.run_command("python throw.py") + if '__pypy__' in sys.builtin_module_names: + # Pypy has an extra frame in the traceback for some reason + lines2 = out2.splitlines() + out2 = "".join([l+"\n" for l in lines2 if "toplevel" not in l]) self.assertMultiLineEqual(out, out2) # But also make sure that the output is what we expect. |