Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r294:d99155033db1
Date: 2013-06-26 22:31 +0200
http://bitbucket.org/pypy/stmgc/changeset/d99155033db1/

Log:    Start to fix the tests

diff --git a/duhton/frame.c b/duhton/frame.c
--- a/duhton/frame.c
+++ b/duhton/frame.c
@@ -106,12 +106,14 @@
     struct dictentry *entries = ob->ob_items;
     revision_t search_id = stm_id(symbol);
 
+#if 0
 #ifdef _GC_DEBUG
     int j;
     for (j = 0; j < right; j++) {
         dprintf(("\t%p\n", (gcptr)entries[j].symbol_id));
     }
 #endif
+#endif
 
     while (right > left) {
         int middle = (left + right) / 2;
diff --git a/duhton/test/support.py b/duhton/test/support.py
--- a/duhton/test/support.py
+++ b/duhton/test/support.py
@@ -1,4 +1,4 @@
-import py
+import py, re
 import os, subprocess
 from cStringIO import StringIO
 
@@ -18,10 +18,13 @@
     if exitcode:
         raise OSError("%r failed (exit code %r)\n" % (cmdargs[0], exitcode) +
                       error.rstrip())
-    if error:
+    if filter_out_colored_output(error):
         raise OSError("%r got on stderr:\n" % (cmdargs[0],) + error.rstrip())
     return result
 
+def filter_out_colored_output(text):
+    return re.sub('\x1b\\[3.m[\w\W]*?\x1b\\[0m', '', text)
+
 
 def execute(argv, stdin=''):
     global _compiled
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to