mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
SF #506611, fix sys.setprofile(), sys.settrace() core dumps
when no arguments are passed
This commit is contained in:
parent
54e0eabc2d
commit
290d31e2fc
3 changed files with 12 additions and 2 deletions
|
@ -471,6 +471,10 @@ sys.settrace(tracer)
|
|||
adaptgetter("foo", TestClass, (1, ""))
|
||||
sys.settrace(None)
|
||||
|
||||
try: sys.settrace()
|
||||
except TypeError: pass
|
||||
else: raise TestFailed, 'sys.settrace() did not raise TypeError'
|
||||
|
||||
print "20. eval and exec with free variables"
|
||||
|
||||
def f(x):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue