[pypy-svn] r73418 - pypy/extradoc/talk/oopsla2010
fijal at codespeak.net
fijal at codespeak.net
Mon Apr 5 22:47:48 CEST 2010
Author: fijal
Date: Mon Apr 5 22:47:46 2010
New Revision: 73418
Modified:
pypy/extradoc/talk/oopsla2010/paper.txt
Log:
Provide a py.test traceback example
Modified: pypy/extradoc/talk/oopsla2010/paper.txt
==============================================================================
--- pypy/extradoc/talk/oopsla2010/paper.txt (original)
+++ pypy/extradoc/talk/oopsla2010/paper.txt Mon Apr 5 22:47:46 2010
@@ -22,7 +22,24 @@
idea is found with web frameworks written in python - they usually try to
present more information than classic traceback representation.
-XXX example of django traceback
+Example of a py.test traceback, using local variable introspection to find out
+what happened:
+
+=================================== FAILURES ===================================
+___________________________________ test_one ___________________________________
+
+ def test_one():
+> f(0, 0)
+
+test_x.py:6:
+_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
+
+i = 0, j = 0
+
+ def f(i, j):
+> return i / j
+E ZeroDivisionError: integer division or modulo by zero
+
In this paper we present the way we deal with frames in order to completely
(or mostly) avoid costs associated with them. Our approach is giving
More information about the Pypy-commit
mailing list