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
52e29072
Commit
52e29072
authored
Jan 13, 2017
by
Martin Panter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #22980: Skip a sysconfig test if _ctypes is not available.
Extracted from revision a1daf2d289ad by Zachary Ware.
parent
5fd832ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Lib/test/test_sysconfig.py
Lib/test/test_sysconfig.py
+4
-2
No files found.
Lib/test/test_sysconfig.py
View file @
52e29072
...
...
@@ -5,7 +5,8 @@ import subprocess
import
shutil
from
copy
import
copy
from
test.support
import
(
run_unittest
,
TESTFN
,
unlink
,
check_warnings
,
from
test.support
import
(
run_unittest
,
import_module
,
TESTFN
,
unlink
,
check_warnings
,
captured_stdout
,
skip_unless_symlink
,
change_cwd
)
import
sysconfig
...
...
@@ -387,7 +388,8 @@ class TestSysConfig(unittest.TestCase):
@
unittest
.
skipUnless
(
sys
.
platform
==
'linux'
,
'Linux-specific test'
)
def
test_triplet_in_ext_suffix
(
self
):
import
ctypes
,
platform
,
re
ctypes
=
import_module
(
'ctypes'
)
import
platform
,
re
machine
=
platform
.
machine
()
suffix
=
sysconfig
.
get_config_var
(
'EXT_SUFFIX'
)
if
re
.
match
(
'(aarch64|arm|mips|ppc|powerpc|s390|sparc)'
,
machine
):
...
...
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