diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-03-03 15:12:58 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-03-03 15:12:58 (GMT) |
commit | 290d31e2fc02a0d887da2c76fbe4e72377442a0a (patch) | |
tree | 5871169da82f3b2b5504ad07b3490260de501fb0 /Lib/test/test_scope.py | |
parent | 54e0eabc2d3343c1ab71f5fb90fdda2f06b606e1 (diff) | |
download | cpython-290d31e2fc02a0d887da2c76fbe4e72377442a0a.zip cpython-290d31e2fc02a0d887da2c76fbe4e72377442a0a.tar.gz cpython-290d31e2fc02a0d887da2c76fbe4e72377442a0a.tar.bz2 |
SF #506611, fix sys.setprofile(), sys.settrace() core dumps
when no arguments are passed
Diffstat (limited to 'Lib/test/test_scope.py')
-rw-r--r-- | Lib/test/test_scope.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_scope.py b/Lib/test/test_scope.py index bb29f8b..85cfed4 100644 --- a/Lib/test/test_scope.py +++ b/Lib/test/test_scope.py @@ -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): |