diff options
author | Guido van Rossum <guido@python.org> | 2000-09-01 19:25:51 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-09-01 19:25:51 +0000 |
commit | 8d691c842289cf4453f282637765f07113a7cc17 (patch) | |
tree | 3a7819d53d7578cf728d3bcfecba7daebb6981db /Lib/dos-8x3/test_ext.py | |
parent | 29201d490511b2af863e07fdf5cb247fc9117c2f (diff) | |
download | cpython-8d691c842289cf4453f282637765f07113a7cc17.tar.gz cpython-8d691c842289cf4453f282637765f07113a7cc17.zip |
The usual
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 6cca1994712..de2312b1de3 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}) |