Skip to content

Commit 9efbf67

Browse files
committed
fix test in SetBuiltins.remove
1 parent 06037f4 commit 9efbf67

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/set

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/set/SetBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ abstract static class RemoveNode extends PythonBinaryBuiltinNode {
103103
Object remove(PBaseSet self, Object other,
104104
@Cached("create()") HashingStorageNodes.DelItemNode delItemNode) {
105105

106-
if (delItemNode.execute(self, self.getDictStorage(), other)) {
106+
if (!delItemNode.execute(self, self.getDictStorage(), other)) {
107107
throw raise(PythonErrorType.KeyError, "%s", other);
108108
}
109109
return PNone.NONE;

0 commit comments

Comments
 (0)