Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
32932286
Commit
32932286
authored
Dec 08, 2007
by
Christian Heimes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Readded Lib/distutils/tests/test_sysconfig.py
Somehow it went missing during the merge
parent
115bfed7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
tests/test_sysconfig.py
tests/test_sysconfig.py
+37
-0
No files found.
tests/test_sysconfig.py
0 → 100644
View file @
32932286
"""Tests for distutils.dist."""
from
distutils
import
sysconfig
import
os
import
sys
import
unittest
from
test.test_support
import
TESTFN
class
SysconfigTestCase
(
unittest
.
TestCase
):
def
test_get_config_h_filename
(
self
):
config_h
=
sysconfig
.
get_config_h_filename
()
self
.
assert_
(
os
.
path
.
isfile
(
config_h
),
config_h
)
def
test_get_python_lib
(
self
):
lib_dir
=
sysconfig
.
get_python_lib
()
# XXX doesn't work on Inux when Python was never installed before
#self.assert_(os.path.isdir(lib_dir), lib_dir)
# test for pythonxx.lib?
def
test_get_python_inc
(
self
):
inc_dir
=
sysconfig
.
get_python_inc
()
self
.
assert_
(
os
.
path
.
isdir
(
inc_dir
),
inc_dir
)
python_h
=
os
.
path
.
join
(
inc_dir
,
"Python.h"
)
self
.
assert_
(
os
.
path
.
isfile
(
python_h
),
python_h
)
def
test_get_config_vars
(
self
):
cvars
=
sysconfig
.
get_config_vars
()
self
.
assert_
(
isinstance
(
cvars
,
dict
))
self
.
assert_
(
cvars
)
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
unittest
.
makeSuite
(
SysconfigTestCase
))
return
suite
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