Skip to content

Commit 588ff99

Browse files
msimacektimfel
authored andcommitted
Fix FileDescriptorConversionNodeTests expectations
1 parent 279c504 commit 588ff99

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,13 @@ public void longFitsInt() {
9999

100100
@Test
101101
public void longTooBig() {
102-
expectPythonMessage("OverflowError: Python int too large to convert to int");
102+
expectPythonMessage("OverflowError: Python int too large to convert to Java int");
103103
call(1L << 40);
104104
}
105105

106106
@Test
107107
public void longTooSmall() {
108-
expectPythonMessage("OverflowError: Python int too large to convert to int");
108+
expectPythonMessage("OverflowError: Python int too large to convert to Java int");
109109
call(-1L << 40);
110110
}
111111

@@ -116,13 +116,13 @@ public void pintFitsInt() {
116116

117117
@Test
118118
public void pintTooBig() {
119-
expectPythonMessage("OverflowError: Python int too large to convert to int");
119+
expectPythonMessage("OverflowError: Python int too large to convert to Java int");
120120
call(factory().createInt(BigInteger.ONE.shiftLeft(100)));
121121
}
122122

123123
@Test
124124
public void pintTooSmall() {
125-
expectPythonMessage("OverflowError: Python int too large to convert to int");
125+
expectPythonMessage("OverflowError: Python int too large to convert to Java int");
126126
call(factory().createInt(BigInteger.ONE.shiftLeft(100).negate()));
127127
}
128128

@@ -145,7 +145,7 @@ public void filenoWrongType() {
145145

146146
@Test
147147
public void filenoTooBig() {
148-
expectPythonMessage("OverflowError: Python int too large to convert to int");
148+
expectPythonMessage("OverflowError: Python int too large to convert to Java int");
149149
call(evalValue("class C:\n def fileno(self):\n return 1 << 40\nC()"));
150150
}
151151

0 commit comments

Comments
 (0)