Antoine Pitrou wrote:
On Sun, 26 Feb 2012 09:02:59 +0100
nick.coghlan <python-check...@python.org> wrote:
+    def get_output(self, code, filename=None):
+        """
+        Run the specified code in Python (in a new child process)
and read the
+        output from the standard error or from a file (if filename
is set).
+        Return the output lines as a list.
+        """

We already have assert_python_ok and friends. It's not obvious what
this additional function achieves. Also, the "filename" argument is
never used.

+        output = re.sub('Current thread 0x[0-9a-f]+',
+                        'Current thread XXX',
+                        output)

This looks like output from the faulthandler module. Why would
faulthandler kick in here?

That's because I stole those two functions from the faulthandler module. Still learning where all the goodies are. Thanks for the tip about assert_python_ok, etc.

~Ethan~
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to