diff options
| author | Guido van Rossum <guido@python.org> | 2008-01-24 17:58:05 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2008-01-24 17:58:05 +0000 |
| commit | 37edeab77875ef35ea54b92d5ba8a94df7deb3f7 (patch) | |
| tree | 04730c76af49de3afc7da67fe4b7670aa8e745d6 /Lib/test/crashers | |
| parent | 4e3f12486fe0e4d6caf3c46e501a15283cf1c95e (diff) | |
| download | cpython-git-37edeab77875ef35ea54b92d5ba8a94df7deb3f7.tar.gz | |
Fix test67.py from issue #1303614.
Diffstat (limited to 'Lib/test/crashers')
| -rw-r--r-- | Lib/test/crashers/loosing_dict_ref.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/Lib/test/crashers/loosing_dict_ref.py b/Lib/test/crashers/loosing_dict_ref.py deleted file mode 100644 index f44370b9a5..0000000000 --- a/Lib/test/crashers/loosing_dict_ref.py +++ /dev/null @@ -1,21 +0,0 @@ - -# http://python.org/sf/1303614 - -class Strange(object): - def __hash__(self): - return hash('hello') - - def __eq__(self, other): - x.__dict__ = {} # the old x.__dict__ is deallocated - return False - - -class X(object): - pass - -if __name__ == '__main__': - v = 123 - x = X() - x.__dict__ = {Strange(): 42, - 'hello': v+456} - x.hello # segfault: the above dict is accessed after it's deallocated |
