[pypy-commit] pypy cpyext-gc-support-2: Less confusing for some tests to have the debug prints go to stderr
arigo
pypy.commits at gmail.com
Tue Feb 16 11:54:39 EST 2016
Author: Armin Rigo <arigo at tunes.org>
Branch: cpyext-gc-support-2
Changeset: r82288:002c2fe86f8c
Date: 2016-02-16 17:53 +0100
http://bitbucket.org/pypy/pypy/changeset/002c2fe86f8c/
Log: Less confusing for some tests to have the debug prints go to stderr
diff --git a/rpython/rtyper/lltypesystem/ll2ctypes.py b/rpython/rtyper/lltypesystem/ll2ctypes.py
--- a/rpython/rtyper/lltypesystem/ll2ctypes.py
+++ b/rpython/rtyper/lltypesystem/ll2ctypes.py
@@ -571,7 +571,7 @@
"double conversion from lltype to ctypes?")
# XXX don't store here immortal structures
if DEBUG_ALLOCATED:
- print "LL2CTYPES:", hex(addr)
+ print >> sys.stderr, "LL2CTYPES:", hex(addr)
ALLOCATED[addr] = self
def _addressof_storage(self):
@@ -585,7 +585,7 @@
# allow the ctypes object to go away now
addr = ctypes.cast(self._storage, ctypes.c_void_p).value
if DEBUG_ALLOCATED:
- print "LL2C FREE:", hex(addr)
+ print >> sys.stderr, "LL2C FREE:", hex(addr)
try:
del ALLOCATED[addr]
except KeyError:
More information about the pypy-commit
mailing list