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
fcfcd98f
Commit
fcfcd98f
authored
Oct 04, 2016
by
Berker Peksag
Browse files
Options
Browse Files
Download
Plain Diff
Issue #28222: Merge from 3.5
parents
ae14a8ce
06e8590e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
tests/test_check.py
tests/test_check.py
+14
-2
No files found.
tests/test_check.py
View file @
fcfcd98f
...
@@ -7,6 +7,12 @@ from distutils.command.check import check, HAS_DOCUTILS
...
@@ -7,6 +7,12 @@ from distutils.command.check import check, HAS_DOCUTILS
from
distutils.tests
import
support
from
distutils.tests
import
support
from
distutils.errors
import
DistutilsSetupError
from
distutils.errors
import
DistutilsSetupError
try
:
import
pygments
except
ImportError
:
pygments
=
None
class
CheckTestCase
(
support
.
LoggingSilencer
,
class
CheckTestCase
(
support
.
LoggingSilencer
,
support
.
TempdirManager
,
support
.
TempdirManager
,
unittest
.
TestCase
):
unittest
.
TestCase
):
...
@@ -119,9 +125,15 @@ class CheckTestCase(support.LoggingSilencer,
...
@@ -119,9 +125,15 @@ class CheckTestCase(support.LoggingSilencer,
pkg_info
,
dist
=
self
.
create_dist
(
long_description
=
rest_with_code
)
pkg_info
,
dist
=
self
.
create_dist
(
long_description
=
rest_with_code
)
cmd
=
check
(
dist
)
cmd
=
check
(
dist
)
cmd
.
check_restructuredtext
()
cmd
.
check_restructuredtext
()
self
.
assertEqual
(
cmd
.
_warnings
,
0
)
msgs
=
cmd
.
_check_rst_data
(
rest_with_code
)
msgs
=
cmd
.
_check_rst_data
(
rest_with_code
)
self
.
assertEqual
(
len
(
msgs
),
0
)
if
pygments
is
not
None
:
self
.
assertEqual
(
len
(
msgs
),
0
)
else
:
self
.
assertEqual
(
len
(
msgs
),
1
)
self
.
assertEqual
(
str
(
msgs
[
0
][
1
]),
'Cannot analyze code. Pygments package not found.'
)
def
test_check_all
(
self
):
def
test_check_all
(
self
):
...
...
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