diff options
Diffstat (limited to 'Lib/dos-8x3/test_ext.py')
-rw-r--r-- | Lib/dos-8x3/test_ext.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/dos-8x3/test_ext.py b/Lib/dos-8x3/test_ext.py index 6cca199..de2312b 100644 --- a/Lib/dos-8x3/test_ext.py +++ b/Lib/dos-8x3/test_ext.py @@ -85,10 +85,13 @@ assert d == d2, "function call modified dictionary" # what about willful misconduct? def saboteur(**kw): - kw['x'] = locals() + kw['x'] = locals() # yields a cyclic kw + return kw d = {} -saboteur(a=1, **d) +kw = saboteur(a=1, **d) assert d == {} +# break the cycle +del kw['x'] try: g(1, 2, 3, **{'x':4, 'y':5}) |