mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Fixed #8980: distutils.command.check was failing w/ docutils installed
This commit is contained in:
parent
84060b81e3
commit
4bcceef5a1
3 changed files with 10 additions and 7 deletions
|
|
@ -13,7 +13,7 @@ try:
|
||||||
from docutils.parsers.rst import Parser
|
from docutils.parsers.rst import Parser
|
||||||
from docutils import frontend
|
from docutils import frontend
|
||||||
from docutils import nodes
|
from docutils import nodes
|
||||||
from StringIO import StringIO
|
from io import StringIO
|
||||||
|
|
||||||
class SilentReporter(Reporter):
|
class SilentReporter(Reporter):
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -224,24 +224,24 @@ class RegisterTestCase(PyPIRCCommandTestCase):
|
||||||
cmd = self._get_cmd(metadata)
|
cmd = self._get_cmd(metadata)
|
||||||
cmd.ensure_finalized()
|
cmd.ensure_finalized()
|
||||||
cmd.strict = 1
|
cmd.strict = 1
|
||||||
inputs = RawInputs('1', 'tarek', 'y')
|
inputs = Inputs('1', 'tarek', 'y')
|
||||||
register_module.raw_input = inputs.__call__
|
register_module.input = inputs.__call__
|
||||||
# let's run the command
|
# let's run the command
|
||||||
try:
|
try:
|
||||||
cmd.run()
|
cmd.run()
|
||||||
finally:
|
finally:
|
||||||
del register_module.raw_input
|
del register_module.input
|
||||||
|
|
||||||
# strict is not by default
|
# strict is not by default
|
||||||
cmd = self._get_cmd()
|
cmd = self._get_cmd()
|
||||||
cmd.ensure_finalized()
|
cmd.ensure_finalized()
|
||||||
inputs = RawInputs('1', 'tarek', 'y')
|
inputs = Inputs('1', 'tarek', 'y')
|
||||||
register_module.raw_input = inputs.__call__
|
register_module.input = inputs.__call__
|
||||||
# let's run the command
|
# let's run the command
|
||||||
try:
|
try:
|
||||||
cmd.run()
|
cmd.run()
|
||||||
finally:
|
finally:
|
||||||
del register_module.raw_input
|
del register_module.input
|
||||||
|
|
||||||
def test_check_metadata_deprecated(self):
|
def test_check_metadata_deprecated(self):
|
||||||
# makes sure make_metadata is deprecated
|
# makes sure make_metadata is deprecated
|
||||||
|
|
|
||||||
|
|
@ -88,6 +88,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #8980: Fixed a failure in distutils.command check that was shadowed
|
||||||
|
by an environment that does not have docutils. Patch by Arferver.
|
||||||
|
|
||||||
- Issue #1050268: parseaddr now correctly quotes double quote and backslash
|
- Issue #1050268: parseaddr now correctly quotes double quote and backslash
|
||||||
characters that appear inside quoted strings in email addresses.
|
characters that appear inside quoted strings in email addresses.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue