summaryrefslogtreecommitdiffstats
path: root/Lib/test/gdb_sample.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-04-01 17:56:57 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-04-01 17:56:57 (GMT)
commitb5023df3d6d46c7a220eb1db0c2db8cbe8a881fc (patch)
tree22febef2ee521db8a896807b85cf19d9a45e649d /Lib/test/gdb_sample.py
parent76c8649038bed4598c7fcac9ef87548f94013087 (diff)
downloadcpython-b5023df3d6d46c7a220eb1db0c2db8cbe8a881fc.zip
cpython-b5023df3d6d46c7a220eb1db0c2db8cbe8a881fc.tar.gz
cpython-b5023df3d6d46c7a220eb1db0c2db8cbe8a881fc.tar.bz2
Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked
as a regular test by regrtest.py, and fails.
Diffstat (limited to 'Lib/test/gdb_sample.py')
-rw-r--r--Lib/test/gdb_sample.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/test/gdb_sample.py b/Lib/test/gdb_sample.py
new file mode 100644
index 0000000..a732b25
--- /dev/null
+++ b/Lib/test/gdb_sample.py
@@ -0,0 +1,12 @@
+# Sample script for use by test_gdb.py
+
+def foo(a, b, c):
+ bar(a, b, c)
+
+def bar(a, b, c):
+ baz(a, b, c)
+
+def baz(*args):
+ print(42)
+
+foo(1, 2, 3)