Skip to content

Commit 6aec2f7

Browse files
committed
[GR-74734] Limit entropy tests to Linux
1 parent 260298a commit 6aec2f7

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/runtime/PythonContextEntropyTests.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,20 @@
5353
import org.graalvm.polyglot.PolyglotException;
5454
import org.graalvm.polyglot.Context;
5555
import org.junit.After;
56+
import org.junit.Before;
5657
import org.junit.Test;
58+
import org.junit.Assume;
5759

5860
import com.oracle.graal.python.runtime.PythonContext;
5961
import com.oracle.graal.python.test.PythonTests;
6062

6163
public class PythonContextEntropyTests {
6264

65+
@Before
66+
public void checkLinuxOnly() {
67+
Assume.assumeTrue(System.getProperty("os.name").toLowerCase().contains("linux"));
68+
}
69+
6370
@After
6471
public void tearDown() {
6572
PythonTests.closeContext();

graalpython/com.oracle.graal.python.test/src/tests/test_entropy_subprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
import unittest
4646

4747

48-
@unittest.skipUnless(sys.implementation.name == "graalpy", "GraalPy-specific test")
48+
@unittest.skipUnless(sys.implementation.name == "graalpy" and sys.platform.startswith("linux"), "Linux GraalPy-specific test")
4949
class EntropySubprocessTests(unittest.TestCase):
5050
HASH_SECRET_BYTES = 24
5151
RANDOM_SEED_BYTES = 624 * 4

0 commit comments

Comments
 (0)