summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_module/bad_getattr2.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_module/bad_getattr2.py')
-rw-r--r--Lib/test/test_module/bad_getattr2.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_module/bad_getattr2.py b/Lib/test/test_module/bad_getattr2.py
new file mode 100644
index 0000000..0a52a53
--- /dev/null
+++ b/Lib/test/test_module/bad_getattr2.py
@@ -0,0 +1,7 @@
+def __getattr__():
+ "Bad one"
+
+x = 1
+
+def __dir__(bad_sig):
+ return []