Skip to content

Commit f950f62

Browse files
committed
[GR-15245] TCK: Python Lambdas are objects.
PullRequest: graalpython/488
2 parents f6002ad + 6f3c7f9 commit f950f62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ public Collection<? extends Snippet> createValueConstructors(Context context) {
134134
addValueSnippet(context, snippets, "DictType:KeyNumber", OBJECT, "lambda: {1: 'Bacon', 0: 'Ham'}");
135135

136136
// TODO remove '*args' from following value constructors once this is fixed in Truffle TCK
137-
addValueSnippet(context, snippets, "LambdaType:Id", executable(ANY, ANY), "lambda: lambda x, *args: x");
138-
addValueSnippet(context, snippets, "LambdaType:+1", executable(NUMBER, NUMBER), "lambda: lambda x, *args: x + 1");
137+
addValueSnippet(context, snippets, "LambdaType:Id", intersection(OBJECT, executable(ANY, ANY)), "lambda: lambda x, *args: x");
138+
addValueSnippet(context, snippets, "LambdaType:+1", intersection(OBJECT, executable(NUMBER, NUMBER)), "lambda: lambda x, *args: x + 1");
139139

140140
// @formatter:on
141141
return snippets;

0 commit comments

Comments
 (0)