Author: Armin Rigo <[email protected]>
Branch: null_byte_after_str
Changeset: r85924:bc2cfcb519ce
Date: 2016-07-30 14:06 +0200
http://bitbucket.org/pypy/pypy/changeset/bc2cfcb519ce/

Log:    fix test

diff --git a/rpython/translator/tool/test/test_staticsizereport.py 
b/rpython/translator/tool/test/test_staticsizereport.py
--- a/rpython/translator/tool/test/test_staticsizereport.py
+++ b/rpython/translator/tool/test/test_staticsizereport.py
@@ -67,7 +67,7 @@
             (4 * S + 2 * P) +      # struct dicttable
             (S + 2 * 8192) +       # indexes, length 8192, rffi.USHORT
             (S + (S + S) * 3840) + # entries, length 3840
-            (S + S + 5) * 3840)    # 3840 strings with 5 chars each
+            (S + S + 6) * 3840)    # 3840 strings with 5 chars each (+1 final)
         assert guess_size(func.builder.db, fixarrayvalnode, set()) == 100 * 
rffi.sizeof(lltype.Signed) + 1 * rffi.sizeof(lltype.Signed)
         assert guess_size(func.builder.db, dynarrayvalnode, set()) == 100 * 
rffi.sizeof(lltype.Signed) + 2 * rffi.sizeof(lltype.Signed) + 1 * 
rffi.sizeof(rffi.VOIDP)
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to