[pypy-svn] r72158 - pypy/trunk/pypy/module/pypyjit/test
fijal at codespeak.net
fijal at codespeak.net
Fri Mar 12 05:54:56 CET 2010
Author: fijal
Date: Fri Mar 12 05:54:53 2010
New Revision: 72158
Modified:
pypy/trunk/pypy/module/pypyjit/test/test_pypy_c.py
Log:
This test now passes
Modified: pypy/trunk/pypy/module/pypyjit/test/test_pypy_c.py
==============================================================================
--- pypy/trunk/pypy/module/pypyjit/test/test_pypy_c.py (original)
+++ pypy/trunk/pypy/module/pypyjit/test/test_pypy_c.py Fri Mar 12 05:54:53 2010
@@ -573,7 +573,6 @@
assert len(bytecode.get_opnames('new_with_vtable')) == 2
def test_import_in_function(self):
- py.test.skip("does not work, why???")
self.run_source('''
def main():
i = 0
@@ -584,7 +583,7 @@
''', 100, ([], 100))
bytecode, = self.get_by_bytecode('IMPORT_NAME')
bytecode2, = self.get_by_bytecode('IMPORT_FROM')
- assert len(bytecode.get_opnames('call')) == 0
+ assert len(bytecode.get_opnames('call')) == 2 # split_chr and list_pop
assert len(bytecode2.get_opnames('call')) == 0
class AppTestJIT(PyPyCJITTests):
More information about the Pypy-commit
mailing list