[pypy-svn] r69101 - pypy/branch/guard-nonnull/pypy/module/pypyjit/test
arigo at codespeak.net
arigo at codespeak.net
Mon Nov 9 16:59:17 CET 2009
Author: arigo
Date: Mon Nov 9 16:59:16 2009
New Revision: 69101
Modified:
pypy/branch/guard-nonnull/pypy/module/pypyjit/test/test_pypy_c.py
Log:
Fix that test too.
Modified: pypy/branch/guard-nonnull/pypy/module/pypyjit/test/test_pypy_c.py
==============================================================================
--- pypy/branch/guard-nonnull/pypy/module/pypyjit/test/test_pypy_c.py (original)
+++ pypy/branch/guard-nonnull/pypy/module/pypyjit/test/test_pypy_c.py Mon Nov 9 16:59:16 2009
@@ -158,8 +158,7 @@
ops = self.get_by_bytecode("LOAD_GLOBAL")
assert len(ops) == 2
assert ops[0].get_opnames() == ["getfield_gc", "getarrayitem_gc",
- "getfield_gc", "ooisnull",
- "guard_false"]
+ "getfield_gc", "guard_nonnull"]
assert not ops[1] # second LOAD_GLOBAL folded away
ops = self.get_by_bytecode("CALL_FUNCTION")
assert len(ops) == 2
@@ -203,7 +202,7 @@
ops = self.get_by_bytecode("LOAD_ATTR")
assert len(ops) == 2
assert ops[0].get_opnames() == ["getfield_gc", "getarrayitem_gc",
- "ooisnull", "guard_false"]
+ "guard_nonnull"]
assert not ops[1] # second LOAD_ATTR folded away
def test_default_and_kw(self):
More information about the Pypy-commit
mailing list