Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,6 @@ test {

// FIXME: Tests that hard-code directory paths (use a symbol):
exclude 'org/python/compiler/custom_proxymaker/**'
exclude 'org/python/compiler/JavaMakerSmokeTest.class'

// FIXME: Failing test finds project root from test class location
exclude 'org/python/core/PySystemState_registry_Test.class'
Expand Down
5 changes: 2 additions & 3 deletions tests/java/org/python/compiler/JavaMakerSmokeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.python.core.PySystemState;
import org.python.core.PyType;
import org.python.core.RegistryKey;
import org.python.util.PythonInterpreter;

Expand All @@ -29,14 +30,12 @@ void setUp() throws Exception {
String input = new String();
input += "import java.io.ByteArrayInputStream\n";
input += "import java.lang.String\n";
input += "import org.python.core.Options\n";
input += "org.python.core.Options.proxyDebugDirectory = 'build/testclasses'\n";
input += "class ProxyTest(java.io.ByteArrayInputStream):\n";
input += " def somemethod(self): pass\n";
input += "ProxyTest(java.lang.String('teststr').getBytes())\n";
interp.exec(input);

proxyClass = Class.forName("org.python.proxies.__main__$ProxyTest$0");
proxyClass = interp.get("ProxyTest", PyType.class).getProxyType();
}

@Test
Expand Down
Loading