summaryrefslogtreecommitdiff
path: root/sys/lib/python/test/crashers/loosing_dict_ref.py
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-05-04 05:41:33 +0000
committercinap_lenrek <cinap_lenrek@localhost>2011-05-04 05:41:33 +0000
commitb8436b026a90291ba26afa4f7a2700720b03339f (patch)
tree3098aede87640c80567ecb31022e0404a8b5ec75 /sys/lib/python/test/crashers/loosing_dict_ref.py
parent6c1b42188259a6f1636cd15a9570b18af03e2dbb (diff)
remove python test cases
Diffstat (limited to 'sys/lib/python/test/crashers/loosing_dict_ref.py')
-rw-r--r--sys/lib/python/test/crashers/loosing_dict_ref.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/sys/lib/python/test/crashers/loosing_dict_ref.py b/sys/lib/python/test/crashers/loosing_dict_ref.py
deleted file mode 100644
index f44370b9a..000000000
--- a/sys/lib/python/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