Author: Carl Friedrich Bolz <[email protected]>
Branch: small-unroll-improvements
Changeset: r70809:3398c41c70bb
Date: 2014-04-21 15:35 +0200
http://bitbucket.org/pypy/pypy/changeset/3398c41c70bb/

Log:    gah, double not :-(

        just shows that unit tests for VArrayStructStateInfo.generate_guards
        would really be cool

diff --git a/rpython/jit/metainterp/optimizeopt/virtualstate.py 
b/rpython/jit/metainterp/optimizeopt/virtualstate.py
--- a/rpython/jit/metainterp/optimizeopt/virtualstate.py
+++ b/rpython/jit/metainterp/optimizeopt/virtualstate.py
@@ -226,7 +226,7 @@
         # XXX this needs a test in test_virtualstate!!!
         if not isinstance(other, VArrayStructStateInfo):
             raise VirtualStatesCantMatch("other is not an 
VArrayStructStateInfo")
-        if not self.arraydescr is not other.arraydescr:
+        if self.arraydescr is not other.arraydescr:
             raise VirtualStatesCantMatch("other is a different kind of array")
 
         if len(self.fielddescrs) != len(other.fielddescrs):
diff --git a/rpython/jit/metainterp/test/test_dict.py 
b/rpython/jit/metainterp/test/test_dict.py
--- a/rpython/jit/metainterp/test/test_dict.py
+++ b/rpython/jit/metainterp/test/test_dict.py
@@ -355,7 +355,7 @@
                 n -= 1
             return len(d)
         self.meta_interp(f, [100])
-        self.check_simple_loop(call_may_force=0, call=3)
+        self.check_simple_loop(call_may_force=0, call=0, new=0)
 
 
 class TestLLtype(DictTests, LLJitMixin):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to