summaryrefslogtreecommitdiff
path: root/Lib/test/crashers/dangerous_subclassing.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/crashers/dangerous_subclassing.py')
-rw-r--r--Lib/test/crashers/dangerous_subclassing.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/Lib/test/crashers/dangerous_subclassing.py b/Lib/test/crashers/dangerous_subclassing.py
deleted file mode 100644
index 0479952b2c..0000000000
--- a/Lib/test/crashers/dangerous_subclassing.py
+++ /dev/null
@@ -1,12 +0,0 @@
-
-# http://python.org/sf/1174712
-
-import types
-
-class X(types.ModuleType, str):
- """Such a subclassing is incorrectly allowed --
- see the SF bug report for explanations"""
-
-if __name__ == '__main__':
- X('name') # segfault: ModuleType.__init__() reads
- # the dict at the wrong offset