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
9e06e8d5
Commit
9e06e8d5
authored
Dec 08, 2012
by
Éric Araujo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use proper skip instead of reporting success in one distutils test
parent
2320fa08
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
Lib/distutils/tests/test_register.py
Lib/distutils/tests/test_register.py
+1
-7
No files found.
Lib/distutils/tests/test_register.py
View file @
9e06e8d5
...
@@ -194,6 +194,7 @@ class RegisterTestCase(PyPIRCCommandTestCase):
...
@@ -194,6 +194,7 @@ class RegisterTestCase(PyPIRCCommandTestCase):
self
.
assertEqual
(
headers
[
'Content-length'
],
'290'
)
self
.
assertEqual
(
headers
[
'Content-length'
],
'290'
)
self
.
assertTrue
(
'tarek'
in
req
.
data
)
self
.
assertTrue
(
'tarek'
in
req
.
data
)
@
unittest
.
skipUnless
(
docutils
is
not
None
,
'needs docutils'
)
def
test_strict
(
self
):
def
test_strict
(
self
):
# testing the script option
# testing the script option
# when on, the register command stops if
# when on, the register command stops if
...
@@ -206,13 +207,6 @@ class RegisterTestCase(PyPIRCCommandTestCase):
...
@@ -206,13 +207,6 @@ class RegisterTestCase(PyPIRCCommandTestCase):
cmd
.
strict
=
1
cmd
.
strict
=
1
self
.
assertRaises
(
DistutilsSetupError
,
cmd
.
run
)
self
.
assertRaises
(
DistutilsSetupError
,
cmd
.
run
)
# we don't test the reSt feature if docutils
# is not installed
try
:
import
docutils
except
ImportError
:
return
# metadata are OK but long_description is broken
# metadata are OK but long_description is broken
metadata
=
{
'url'
:
'xxx'
,
'author'
:
'xxx'
,
metadata
=
{
'url'
:
'xxx'
,
'author'
:
'xxx'
,
'author_email'
:
u'éxéxé'
,
'author_email'
:
u'éxéxé'
,
...
...
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