]> granicus.if.org Git - python/commitdiff
Merged revisions 85197 via svnmerge from
authorTarek Ziadé <ziade.tarek@gmail.com>
Sun, 3 Oct 2010 14:30:11 +0000 (14:30 +0000)
committerTarek Ziadé <ziade.tarek@gmail.com>
Sun, 3 Oct 2010 14:30:11 +0000 (14:30 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85197 | tarek.ziade | 2010-10-03 16:18:09 +0200 (Sun, 03 Oct 2010) | 1 line

  Fixed #8980: distutils.command.check was failing w/ docutils installed
........

Lib/distutils/command/check.py
Lib/distutils/tests/test_register.py
Misc/NEWS

index 12844cbf9fad2c67f2222f000a6be76b38cc7f1e..2657c696e5365f2caa6fced708f00b83287fb025 100644 (file)
@@ -13,7 +13,7 @@ try:
     from docutils.parsers.rst import Parser
     from docutils import frontend
     from docutils import nodes
-    from StringIO import StringIO
+    from io import StringIO
 
     class SilentReporter(Reporter):
 
index c03ad1014701772abdbf6f76defb09aa63f69e30..7d0ac9ee3a256f73314a6a44c4ee5968f48a47f1 100644 (file)
@@ -224,24 +224,24 @@ class RegisterTestCase(PyPIRCCommandTestCase):
         cmd = self._get_cmd(metadata)
         cmd.ensure_finalized()
         cmd.strict = 1
-        inputs = RawInputs('1', 'tarek', 'y')
-        register_module.raw_input = inputs.__call__
+        inputs = Inputs('1', 'tarek', 'y')
+        register_module.input = inputs.__call__
         # let's run the command
         try:
             cmd.run()
         finally:
-            del register_module.raw_input
+            del register_module.input
 
         # strict is not by default
         cmd = self._get_cmd()
         cmd.ensure_finalized()
-        inputs = RawInputs('1', 'tarek', 'y')
-        register_module.raw_input = inputs.__call__
+        inputs = Inputs('1', 'tarek', 'y')
+        register_module.input = inputs.__call__
         # let's run the command
         try:
             cmd.run()
         finally:
-            del register_module.raw_input
+            del register_module.input
 
     def test_check_metadata_deprecated(self):
         # makes sure make_metadata is deprecated
index 58417615b829b8987e4e8ffdc2bf146a8e6aa80f..b3137856ec65996d6271290867ea543a5c568137 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -124,6 +124,9 @@ C-API
 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
   characters that appear inside quoted strings in email addresses.