commit | a8268e945778dac4e92421545573424eb495f918 | [log] [tgz] |
---|---|---|
author | Jeremy Hylton <jeremy@alum.mit.edu> | Mon Oct 16 17:33:50 2000 +0000 |
committer | Jeremy Hylton <jeremy@alum.mit.edu> | Mon Oct 16 17:33:50 2000 +0000 |
tree | 03584ae49808edfd865121c4990bf9d461543deb | |
parent | 1a2ca86a4f2356bb4d545f60f2da888cd13123a4 [diff] [blame] |
the usual
diff --git a/Lib/dos-8x3/test_unp.py b/Lib/dos-8x3/test_unp.py index 25324c0..25b94e9 100644 --- a/Lib/dos-8x3/test_unp.py +++ b/Lib/dos-8x3/test_unp.py
@@ -47,6 +47,18 @@ if a <> 0 or b <> 1 or c <> 2: raise TestFailed +# single element unpacking, with extra syntax +if verbose: + print 'unpack single tuple/list' +st = (99,) +sl = [100] +a, = st +if a <> 99: + raise TestFailed +b, = sl +if b <> 100: + raise TestFailed + # now for some failures # unpacking non-sequence