[pypy-svn] r33772 - pypy/dist/pypy/translator/cli/test
antocuni at codespeak.net
antocuni at codespeak.net
Thu Oct 26 15:56:36 CEST 2006
Author: antocuni
Date: Thu Oct 26 15:56:31 2006
New Revision: 33772
Modified:
pypy/dist/pypy/translator/cli/test/test_dotnet.py
Log:
A failing test
Modified: pypy/dist/pypy/translator/cli/test/test_dotnet.py
==============================================================================
--- pypy/dist/pypy/translator/cli/test/test_dotnet.py (original)
+++ pypy/dist/pypy/translator/cli/test/test_dotnet.py Thu Oct 26 15:56:31 2006
@@ -6,6 +6,7 @@
from pypy.translator.cli.dotnet import SomeCliClass, SomeCliStaticMethod,\
NativeInstance, CLR, box, unbox
+System = CLR.System
Math = CLR.System.Math
ArrayList = CLR.System.Collections.ArrayList
StringBuilder = CLR.System.Text.StringBuilder
@@ -127,6 +128,18 @@
return unbox(x.get_Item(0), ootype.String)
assert self.interpret(fn, []) == 'foo'
+ def test_exception(self):
+ py.test.skip("It doesn't work so far")
+ def fn():
+ x = ArrayList()
+ try:
+ x.get_Item(0)
+ except System.ArgumentOutOfRangeException:
+ return 42
+ else:
+ return 43
+ assert self.interpret(fn, []) == 42
+
class TestPythonnet(TestDotnetRtyping):
# don't interpreter functions but execute them directly through pythonnet
More information about the Pypy-commit
mailing list