SF.net SVN: jython:[7111] trunk/jython/tests/java/org/python
[email protected] Tue, 07 Sep 2010 20:49:59 +0000
| Newsgroups | gmane.comp.lang.jython.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 7111
http://jython.svn.sourceforge.net/jython/?rev=7111&view=rev
Author: otmarhumbel
Date: 2010-09-07 20:49:59 +0000 (Tue, 07 Sep 2010)
Log Message:
-----------
fix the java tests by initializing the interpreter in setUp()
Modified Paths:
--------------
trunk/jython/tests/java/org/python/core/WrappedBooleanTest.java
trunk/jython/tests/java/org/python/core/WrappedFloatTest.java
trunk/jython/tests/java/org/python/core/WrappedIntegerTest.java
trunk/jython/tests/java/org/python/core/WrappedLongTest.java
trunk/jython/tests/java/org/python/tests/ExceptionTest.java
trunk/jython/tests/java/org/python/tests/SerializationTest.java
trunk/jython/tests/java/org/python/tests/props/BeanPropertyTest.java
Modified: trunk/jython/tests/java/org/python/core/WrappedBooleanTest.java
===================================================================
--- trunk/jython/tests/java/org/python/core/WrappedBooleanTest.java 2010-09-04 02:43:03 UTC (rev 7110)
+++ trunk/jython/tests/java/org/python/core/WrappedBooleanTest.java 2010-09-07 20:49:59 UTC (rev 7111)
@@ -32,6 +32,7 @@
@Override
protected void setUp() throws Exception {
+ PythonInterpreter.initialize(null, null, null);
interp = new PythonInterpreter(new PyStringMap(), new PySystemState());
a = new WrappedBoolean();
b = new WrappedBoolean();
Modified: trunk/jython/tests/java/org/python/core/WrappedFloatTest.java
===================================================================
--- trunk/jython/tests/java/org/python/core/WrappedFloatTest.java 2010-09-04 02:43:03 UTC (rev 7110)
+++ trunk/jython/tests/java/org/python/core/WrappedFloatTest.java 2010-09-07 20:49:59 UTC (rev 7111)
@@ -32,6 +32,7 @@
@Override
protected void setUp() throws Exception {
+ PythonInterpreter.initialize(null, null, null);
interp = new PythonInterpreter(new PyStringMap(), new PySystemState());
a = new WrappedFloat();
b = new WrappedFloat();
Modified: trunk/jython/tests/java/org/python/core/WrappedIntegerTest.java
===================================================================
--- trunk/jython/tests/java/org/python/core/WrappedIntegerTest.java 2010-09-04 02:43:03 UTC (rev 7110)
+++ trunk/jython/tests/java/org/python/core/WrappedIntegerTest.java 2010-09-07 20:49:59 UTC (rev 7111)
@@ -32,6 +32,7 @@
@Override
protected void setUp() throws Exception {
+ PythonInterpreter.initialize(null, null, null);
interp = new PythonInterpreter(new PyStringMap(), new PySystemState());
a = new WrappedInteger();
b = new WrappedInteger();
Modified: trunk/jython/tests/java/org/python/core/WrappedLongTest.java
===================================================================
--- trunk/jython/tests/java/org/python/core/WrappedLongTest.java 2010-09-04 02:43:03 UTC (rev 7110)
+++ trunk/jython/tests/java/org/python/core/WrappedLongTest.java 2010-09-07 20:49:59 UTC (rev 7111)
@@ -34,6 +34,7 @@
@Override
protected void setUp() throws Exception {
+ PythonInterpreter.initialize(null, null, null);
interp = new PythonInterpreter(new PyStringMap(), new PySystemState());
a = new WrappedLong();
b = new WrappedLong();
Modified: trunk/jython/tests/java/org/python/tests/ExceptionTest.java
===================================================================
--- trunk/jython/tests/java/org/python/tests/ExceptionTest.java 2010-09-04 02:43:03 UTC (rev 7110)
+++ trunk/jython/tests/java/org/python/tests/ExceptionTest.java 2010-09-07 20:49:59 UTC (rev 7111)
@@ -28,6 +28,7 @@
" else:\n" +
" raise Throwable()\n" +
"r = Raiser()";
+ PythonInterpreter.initialize(null, null, null);
PythonInterpreter interp = new PythonInterpreter();
interp.exec(raiser);
t = Py.tojava(interp.get("r"), Thrower.class);
Modified: trunk/jython/tests/java/org/python/tests/SerializationTest.java
===================================================================
--- trunk/jython/tests/java/org/python/tests/SerializationTest.java 2010-09-04 02:43:03 UTC (rev 7110)
+++ trunk/jython/tests/java/org/python/tests/SerializationTest.java 2010-09-07 20:49:59 UTC (rev 7111)
@@ -18,6 +18,7 @@
@Override
protected void setUp() throws Exception {
+ PythonInterpreter.initialize(null, null, null);
interp = new PythonInterpreter(new PyStringMap(), new PySystemState());
interp.exec("from java.io import Serializable");
interp.exec("class Test(Serializable): pass");
Modified: trunk/jython/tests/java/org/python/tests/props/BeanPropertyTest.java
===================================================================
--- trunk/jython/tests/java/org/python/tests/props/BeanPropertyTest.java 2010-09-04 02:43:03 UTC (rev 7110)
+++ trunk/jython/tests/java/org/python/tests/props/BeanPropertyTest.java 2010-09-07 20:49:59 UTC (rev 7111)
@@ -12,6 +12,7 @@
@Override
protected void setUp() throws Exception {
+ PythonInterpreter.initialize(null, null, null);
interp = new PythonInterpreter(new PyStringMap(), new PySystemState());
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd