Author: Armin Rigo <[email protected]>
Branch: rpython-bytearray
Changeset: r59553:82c9a00a8c60
Date: 2012-12-26 11:08 +0100
http://bitbucket.org/pypy/pypy/changeset/82c9a00a8c60/
Log: Add asserts that should pass, but don't
diff --git a/pypy/rpython/lltypesystem/rstr.py
b/pypy/rpython/lltypesystem/rstr.py
--- a/pypy/rpython/lltypesystem/rstr.py
+++ b/pypy/rpython/lltypesystem/rstr.py
@@ -73,6 +73,8 @@
# because it might move the strings. The keepalive_until_here()
# are obscurely essential to make sure that the strings stay alive
# longer than the raw_memcopy().
+ assert typeOf(src).TO == SRC_TP
+ assert typeOf(dst).TO == DST_TP
assert srcstart >= 0
assert dststart >= 0
assert length >= 0
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit