Skip to content

Commit 32e0745

Browse files
committed
Fix style
1 parent 9ec494e commit 32e0745

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

graalpython/com.oracle.graal.python.test.integration/src/com/oracle/graal/python/test/integration/advanced/ResourcesTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ public void testResourcesAsHome() {
7373

7474
@Test
7575
public void testResourcesAlwaysAllowReading() {
76-
try (Engine engine = Engine.create("python"); Context context = Context.newBuilder("python").engine(engine).allowIO(IOAccess.NONE).option("python.PythonHome", "/path/that/does/not/exist").build()) {
76+
try (Engine engine = Engine.create("python");
77+
Context context = Context.newBuilder("python").engine(engine).allowIO(IOAccess.NONE).option("python.PythonHome", "/path/that/does/not/exist").build()) {
7778
String foundHome = context.eval("python", "import email; email.__spec__.origin").asString();
7879
assertTrue(foundHome, foundHome.contains("python" + File.separator + "python-home"));
7980
}

graalpython/com.oracle.graal.python.test.integration/src/com/oracle/graal/python/test/integration/interop/JavaInteropTest.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ public void evalFailsOnError() {
120120

121121
@Test
122122
public void evalNonInteractiveThrowsSyntaxError() throws IOException {
123-
try (Engine engine = Engine.create("python"); Context c = Context.newBuilder().engine(engine).allowExperimentalOptions(true).allowAllAccess(true).option("python.TerminalIsInteractive", "false").build()) {
123+
try (Engine engine = Engine.create("python");
124+
Context c = Context.newBuilder().engine(engine).allowExperimentalOptions(true).allowAllAccess(true).option("python.TerminalIsInteractive", "false").build()) {
124125
c.eval(Source.newBuilder("python", INCOMPLETE_SOURCE, "eval").interactive(false).build());
125126
} catch (PolyglotException t) {
126127
assertTrue(t.isSyntaxError());
@@ -132,7 +133,8 @@ public void evalNonInteractiveThrowsSyntaxError() throws IOException {
132133

133134
@Test
134135
public void evalNonInteractiveInInteractiveTerminalThrowsSyntaxError() throws IOException {
135-
try (Engine engine = Engine.create("python"); Context c = Context.newBuilder().engine(engine).allowExperimentalOptions(true).allowAllAccess(true).option("python.TerminalIsInteractive", "true").build()) {
136+
try (Engine engine = Engine.create("python");
137+
Context c = Context.newBuilder().engine(engine).allowExperimentalOptions(true).allowAllAccess(true).option("python.TerminalIsInteractive", "true").build()) {
136138
c.eval(Source.newBuilder("python", INCOMPLETE_SOURCE, "eval").interactive(false).build());
137139
} catch (PolyglotException t) {
138140
assertTrue(t.isSyntaxError());
@@ -144,7 +146,8 @@ public void evalNonInteractiveInInteractiveTerminalThrowsSyntaxError() throws IO
144146

145147
@Test
146148
public void evalInteractiveInNonInteractiveTerminalThrowsSyntaxError() throws IOException {
147-
try (Engine engine = Engine.create("python"); Context c = Context.newBuilder().engine(engine).allowExperimentalOptions(true).allowAllAccess(true).option("python.TerminalIsInteractive", "false").build()) {
149+
try (Engine engine = Engine.create("python");
150+
Context c = Context.newBuilder().engine(engine).allowExperimentalOptions(true).allowAllAccess(true).option("python.TerminalIsInteractive", "false").build()) {
148151
c.eval(Source.newBuilder("python", INCOMPLETE_SOURCE, "eval").interactive(true).build());
149152
} catch (PolyglotException t) {
150153
assertTrue(t.isSyntaxError());
@@ -156,7 +159,8 @@ public void evalInteractiveInNonInteractiveTerminalThrowsSyntaxError() throws IO
156159

157160
@Test
158161
public void evalInteractiveInInteractiveTerminalThrowsSyntaxError() throws IOException {
159-
try (Engine engine = Engine.create("python"); Context c = Context.newBuilder().engine(engine).allowExperimentalOptions(true).allowAllAccess(true).option("python.TerminalIsInteractive", "true").build()) {
162+
try (Engine engine = Engine.create("python");
163+
Context c = Context.newBuilder().engine(engine).allowExperimentalOptions(true).allowAllAccess(true).option("python.TerminalIsInteractive", "true").build()) {
160164
c.eval(Source.newBuilder("python", INCOMPLETE_SOURCE, "eval").interactive(true).build());
161165
} catch (PolyglotException t) {
162166
assertTrue(t.isSyntaxError());

graalpython/com.oracle.graal.python.test.integration/src/org/graalvm/python/embedding/test/integration/VirtualFileSystemIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private VirtualFileSystem createVirtualFileSystem() {
125125
}
126126

127127
private static Engine engine;
128-
128+
129129
@BeforeClass
130130
public static void makeEngine() {
131131
engine = Engine.create("python");

0 commit comments

Comments
 (0)