mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00

Add assertSyntaxError() which run tests with an additional docstring and without docstring, and checks for the error message.
10 lines
149 B
Python
10 lines
149 B
Python
"""This is a test"""
|
|
|
|
from __future__ import nested_scopes; import site
|
|
|
|
def f(x):
|
|
def g(y):
|
|
return x + y
|
|
return g
|
|
|
|
result = f(2)(4)
|