Author: Manuel Jacob <[email protected]>
Branch: py3k
Changeset: r77847:f1f064b3faf1
Date: 2015-06-04 01:59 +0200
http://bitbucket.org/pypy/pypy/changeset/f1f064b3faf1/

Log:    Let the trace module ignore some modules which get freezed at
        translation-time.

        See comment for details.

diff --git a/lib-python/3/trace.py b/lib-python/3/trace.py
--- a/lib-python/3/trace.py
+++ b/lib-python/3/trace.py
@@ -245,7 +245,12 @@
         we want to have reported.
         """
         return (filename == "<string>" or
-                filename.startswith("<doctest "))
+                filename.startswith("<doctest ") or
+                # XXX PyPy freezes some (pure-Python) modules at
+                # translation-time.  These contain filenames starting with
+                # "<builtin>/" instead of their actual filenames.  Ignore them
+                # for now.
+                filename.startswith("<builtin>/"))
 
     def update(self, other):
         """Merge in the data from another CoverageResults"""
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to