Skip to content

Commit be0a93d

Browse files
committed
Fix style
1 parent d5a99f0 commit be0a93d

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/builtins/modules/ConversionNodeTests.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0
@@ -42,7 +42,6 @@
4242

4343
import org.hamcrest.CoreMatchers;
4444
import org.hamcrest.Description;
45-
import org.hamcrest.Factory;
4645
import org.hamcrest.Matcher;
4746
import org.hamcrest.TypeSafeMatcher;
4847
import org.junit.Rule;
@@ -78,11 +77,6 @@ protected void describeMismatchSafely(PException item, Description description)
7877
description.appendText("message ");
7978
matcher.describeMismatch(PythonTests.getExceptionMessage(item), description);
8079
}
81-
82-
@Factory
83-
public static <T extends Throwable> Matcher<T> hasMessage(final Matcher<String> matcher) {
84-
return new org.junit.internal.matchers.ThrowableMessageMatcher<T>(matcher);
85-
}
8680
}
8781

8882
protected void expectPythonMessage(String expectedMessage) {

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/PythonTests.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,11 @@
4848
import java.util.Collections;
4949
import java.util.Map;
5050

51-
import com.oracle.graal.python.runtime.exception.ExceptionUtils;
52-
import com.oracle.truffle.api.interop.InteropLibrary;
53-
import com.oracle.truffle.api.interop.UnsupportedMessageException;
5451
import org.graalvm.polyglot.Context;
5552
import org.graalvm.polyglot.Engine;
5653
import org.graalvm.polyglot.PolyglotException;
5754
import org.graalvm.polyglot.Value;
55+
import org.junit.Assert;
5856

5957
import com.oracle.graal.python.PythonLanguage;
6058
import com.oracle.graal.python.runtime.PythonContext;
@@ -64,10 +62,11 @@
6462
import com.oracle.truffle.api.Truffle;
6563
import com.oracle.truffle.api.frame.FrameDescriptor;
6664
import com.oracle.truffle.api.frame.VirtualFrame;
65+
import com.oracle.truffle.api.interop.InteropLibrary;
66+
import com.oracle.truffle.api.interop.UnsupportedMessageException;
6767
import com.oracle.truffle.api.nodes.RootNode;
6868
import com.oracle.truffle.api.source.Source;
6969
import com.oracle.truffle.api.source.Source.LiteralBuilder;
70-
import org.junit.Assert;
7170

7271
public class PythonTests {
7372
static {

0 commit comments

Comments
 (0)