Skip to content

Commit 2ba8a9a

Browse files
committed
fix testing for custom class as unsupported keys in __dict__
1 parent 60e3aee commit 2ba8a9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/builtin/BaseExceptionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void testUnhashableType() {
5656
}
5757

5858
@Test
59-
public void testUnsupportedKey() {
59+
public void testClassAsKey() {
6060
String source = "try:\n" +
6161
" class MyClass:\n" +
6262
" def __hash__(self):\n" +
@@ -66,7 +66,7 @@ public void testUnsupportedKey() {
6666
" sysdict[MyClass()] = lambda x: x\n" +
6767
"except KeyError as e:\n" +
6868
" print(str(e))\n";
69-
assertPrints("unsupported key: MyClass\n", source);
69+
assertPrints("", source);
7070
}
7171

7272
@Test

0 commit comments

Comments
 (0)