[pypy-svn] r36672 - pypy/dist/pypy/translator/js/test
fijal at codespeak.net
fijal at codespeak.net
Sat Jan 13 17:08:20 CET 2007
Author: fijal
Date: Sat Jan 13 17:08:18 2007
New Revision: 36672
Modified:
pypy/dist/pypy/translator/js/test/test_basicexternal.py
Log:
Adopt a test to new API
Modified: pypy/dist/pypy/translator/js/test/test_basicexternal.py
==============================================================================
--- pypy/dist/pypy/translator/js/test/test_basicexternal.py (original)
+++ pypy/dist/pypy/translator/js/test/test_basicexternal.py Sat Jan 13 17:08:18 2007
@@ -9,7 +9,7 @@
from pypy.translator.js.tester import schedule_callbacks
class A(BasicExternal):
- @described(retval=3)
+ @described(retval=int)
def some_code(self, var="aa"):
pass
@@ -49,7 +49,7 @@
## assert fun() == 3
class EE(BasicExternal):
- @described(retval=3)
+ @described(retval=int)
def bb(self):
pass
@@ -64,7 +64,7 @@
assert check_source_contains(fun, "EE = ee")
class C(BasicExternal):
- @described(retval=3)
+ @described(retval=int)
def f(self):
pass
@@ -84,11 +84,11 @@
class D(BasicExternal):
_fields = {
- 'a': {"aa":"aa"},
- 'b': ["aa"],
+ 'a': {str:str},
+ 'b': [str],
}
-D._fields['c'] = [D(),D()]
+D._fields['c'] = [D]
d = D()
d._render_name = 'd'
@@ -114,7 +114,7 @@
def test_method_call():
class Meth(BasicExternal):
- @described(retval=3)
+ @described(retval=int)
def meth(self):
return 8
More information about the Pypy-commit
mailing list