diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-10-30 23:20:46 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-10-30 23:20:46 (GMT) |
commit | c2fe618575aaf58ddf36d04d96431d6dc819ef31 (patch) | |
tree | f083f6119e71555915d02a04de993e97d7d36ffc /Lib/test/test_support.py | |
parent | 5ded1bf5c7773b7a13e1907e3cfb4826c402d7b2 (diff) | |
download | cpython-c2fe618575aaf58ddf36d04d96431d6dc819ef31.zip cpython-c2fe618575aaf58ddf36d04d96431d6dc819ef31.tar.gz cpython-c2fe618575aaf58ddf36d04d96431d6dc819ef31.tar.bz2 |
Fix bad bug in structseq slicing (NULL pointers in result). Reported by
Jack Jansen on python-dev.
Add simple test case.
Move vereq() from test_descr to test_support (it's handy!).
Diffstat (limited to 'Lib/test/test_support.py')
-rw-r--r-- | Lib/test/test_support.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index bbae1be..83bde3e 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -117,6 +117,10 @@ def verify(condition, reason='test failed'): if not condition: raise TestFailed(reason) +def vereq(a, b): + if not (a == b): + raise TestFailed, "%r == %r" % (a, b) + def sortdict(dict): "Like repr(dict), but in sorted order." items = dict.items() |