Skip to content

Commit a387db6

Browse files
committed
[GR-30278] TCK: Generator objects are iterable.
1 parent c8abb55 commit a387db6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

graalpython/com.oracle.graal.python.tck/src/com/oracle/graal/python/tck/PythonProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private static final TypeDescriptor function(TypeDescriptor returnType, TypeDesc
136136
}
137137

138138
private static final TypeDescriptor generator(TypeDescriptor componentType) {
139-
return intersection(OBJECT, iterator(componentType));
139+
return intersection(OBJECT, iterator(componentType), iterable(componentType));
140140
}
141141

142142
public String getId() {

0 commit comments

Comments
 (0)