Skip to content

Commit 3a0cd32

Browse files
committed
[GR-55093] Fix deprecations in Java unit tests
PullRequest: graalpython/3394
2 parents 3fd37d7 + 415a007 commit 3a0cd32

File tree

7 files changed

+301
-255
lines changed

7 files changed

+301
-255
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2023, Oracle and/or its affiliates.
2+
* Copyright (c) 2017, 2024, Oracle and/or its affiliates.
33
* Copyright (c) 2013, Regents of the University of California
44
*
55
* All rights reserved.
@@ -44,7 +44,7 @@
4444
import org.graalvm.polyglot.PolyglotException;
4545
import org.graalvm.polyglot.Source;
4646
import org.graalvm.polyglot.Value;
47-
import org.junit.Assert;
47+
import org.hamcrest.MatcherAssert;
4848

4949
import com.oracle.graal.python.test.integration.advanced.BenchmarkTests;
5050

@@ -106,7 +106,7 @@ public static void assertLastLineErrorContains(String expected, String code) {
106106
PythonTests.runThrowableScript(new String[0], source, System.out, printStream);
107107
String[] output = byteArray.toString().split("\n");
108108
// ignore the traceback
109-
Assert.assertThat(output[output.length - 1], containsString(expected.trim()));
109+
MatcherAssert.assertThat(output[output.length - 1], containsString(expected.trim()));
110110
}
111111

112112
public static void assertPrintContains(String expected, String code) {

0 commit comments

Comments
 (0)