All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tests.java.org.python.expose.generate.InterpTestCase Maven / Gradle / Ivy

Go to download

Jython is an implementation of the high-level, dynamic, object-oriented language Python written in 100% Pure Java, and seamlessly integrated with the Java platform. It thus allows you to run Python on any Java platform.

There is a newer version: 2.7.4
Show newest version
package org.python.expose.generate;

import org.python.core.Py;
import org.python.core.PySystemState;

import junit.framework.TestCase;

/**
 * Initializes PySystemState in its setUp for use in subclasses.
 */
public abstract class InterpTestCase extends TestCase {

    public void setUp() throws Exception {
        System.setProperty(PySystemState.PYTHON_CACHEDIR_SKIP, "true");
        PySystemState.initialize();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy