Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f1b34ee6
Commit
f1b34ee6
authored
May 06, 2012
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#12660: Skip test_gdb when run from an installed Python.
parent
73954040
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Lib/test/test_gdb.py
Lib/test/test_gdb.py
+4
-0
No files found.
Lib/test/test_gdb.py
View file @
f1b34ee6
...
...
@@ -7,6 +7,7 @@ import os
import
re
import
subprocess
import
sys
import
sysconfig
import
unittest
import
locale
...
...
@@ -24,6 +25,9 @@ if int(gdb_version_number.group(1)) < 7:
raise unittest.SkipTest("
gdb
versions
before
7.0
didn
't support python embedding"
" Saw:
\
n
" + gdb_version.decode('
ascii
', '
replace
'))
if not sysconfig.is_python_build():
raise unittest.SkipTest("test_gdb only works on source builds at the moment.")
# Verify that "gdb" was built with the embedded python support enabled:
cmd = "--eval-command=python import sys; print sys.version_info"
p = subprocess.Popen(["gdb", "--batch", cmd],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment