[pypy-svn] r48262 - pypy/dist/pypy/lang/smalltalk/test
cfbolz at codespeak.net
cfbolz at codespeak.net
Fri Nov 2 21:57:57 CET 2007
Author: cfbolz
Date: Fri Nov 2 21:57:57 2007
New Revision: 48262
Modified:
pypy/dist/pypy/lang/smalltalk/test/test_miniimage.py
Log:
fix test
Modified: pypy/dist/pypy/lang/smalltalk/test/test_miniimage.py
==============================================================================
--- pypy/dist/pypy/lang/smalltalk/test/test_miniimage.py (original)
+++ pypy/dist/pypy/lang/smalltalk/test/test_miniimage.py Fri Nov 2 21:57:57 2007
@@ -9,6 +9,7 @@
from pypy.lang.smalltalk import objtable
from pypy.lang.smalltalk import classtable
from pypy.lang.smalltalk import shadow
+from pypy.lang.smalltalk import utility
# lazy initialization of test data, ie ImageReader and Float class
def setup_module(module):
@@ -226,7 +227,6 @@
assert w_false is objtable.w_false
def test_compile_method():
- py.test.skip("not quite yet")
sourcecode = """fib
^self < 2
ifTrue: [ 1 ]
@@ -240,15 +240,15 @@
if isinstance(any, str):
# assume never have strings of length 1
if len(any) == 1:
- return objtable.wrap_chr(any)
+ return utility.wrap_chr(any)
else:
- return objtable.wrap_string(any)
+ return utility.wrap_string(any)
if isinstance(any, int):
- return objtable.wrap_int(any)
+ return utility.wrap_int(any)
if isinstance(any, bool):
- return objtable.wrap_bool(any)
+ return utility.wrap_bool(any)
if isinstance(any, float):
- return objtable.wrap_float(any)
+ return utility.wrap_float(any)
else:
raise Exception
More information about the pypy-svn
mailing list