Mercurial > vim
comparison src/testdir/test87.ok @ 5426:9cedb4dfd4c8 v7.4.063
updated for version 7.4.063
Problem: Crash when using invalid key in Python dictionary.
Solution: Check for object to be NULL. Add tests. (ZyX)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 04 Nov 2013 00:34:53 +0100 |
parents | 5b2c8f3b3906 |
children | a56f60cf6834 |
comparison
equal
deleted
inserted
replaced
5425:9521463d4fc1 | 5426:9cedb4dfd4c8 |
---|---|
503 d.get(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | 503 d.get(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
504 d.get("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',)) | 504 d.get("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',)) |
505 <<< Finished | 505 <<< Finished |
506 d.pop("a"):(<class 'KeyError'>, KeyError('a',)) | 506 d.pop("a"):(<class 'KeyError'>, KeyError('a',)) |
507 dl.pop("a"):(<class 'vim.error'>, error('dictionary is locked',)) | 507 dl.pop("a"):(<class 'vim.error'>, error('dictionary is locked',)) |
508 >> DictionaryContains | |
509 "" in d:(<class 'ValueError'>, ValueError('empty keys are not allowed',)) | |
510 0 in d:(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int',)) | |
508 >> DictionaryIterNext | 511 >> DictionaryIterNext |
509 for i in ned: ned["a"] = 1:(<class 'RuntimeError'>, RuntimeError('hashtab changed during iteration',)) | 512 for i in ned: ned["a"] = 1:(<class 'RuntimeError'>, RuntimeError('hashtab changed during iteration',)) |
510 >> DictionaryAssItem | 513 >> DictionaryAssItem |
511 dl["b"] = 1:(<class 'vim.error'>, error('dictionary is locked',)) | 514 dl["b"] = 1:(<class 'vim.error'>, error('dictionary is locked',)) |
512 >>> Testing StringToChars using d[%s] = 1 | 515 >>> Testing StringToChars using d[%s] = 1 |