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
8ab0c960
Commit
8ab0c960
authored
Oct 04, 2016
by
Berker Peksag
Browse files
Options
Browse Files
Download
Plain Diff
Issue #28222: Merge from 3.5
parents
aac78d0b
a273afd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
Lib/distutils/tests/test_check.py
Lib/distutils/tests/test_check.py
+14
-2
No files found.
Lib/distutils/tests/test_check.py
View file @
8ab0c960
...
...
@@ -7,6 +7,12 @@ from distutils.command.check import check, HAS_DOCUTILS
from
distutils.tests
import
support
from
distutils.errors
import
DistutilsSetupError
try
:
import
pygments
except
ImportError
:
pygments
=
None
class
CheckTestCase
(
support
.
LoggingSilencer
,
support
.
TempdirManager
,
unittest
.
TestCase
):
...
...
@@ -119,9 +125,15 @@ class CheckTestCase(support.LoggingSilencer,
pkg_info
,
dist
=
self
.
create_dist
(
long_description
=
rest_with_code
)
cmd
=
check
(
dist
)
cmd
.
check_restructuredtext
()
self
.
assertEqual
(
cmd
.
_warnings
,
0
)
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
):
...
...
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