]> granicus.if.org Git - python/commitdiff
skip test when distutils is not made for py3k
authorBenjamin Peterson <benjamin@python.org>
Sun, 19 Jul 2009 21:52:02 +0000 (21:52 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 19 Jul 2009 21:52:02 +0000 (21:52 +0000)
Lib/distutils/tests/test_register.py

index c03ad1014701772abdbf6f76defb09aa63f69e30..acda1b1ac1df8b4fb04072d2059d681bd3bb9773 100644 (file)
@@ -202,10 +202,10 @@ class RegisterTestCase(PyPIRCCommandTestCase):
         self.assertRaises(DistutilsSetupError, cmd.run)
 
         # we don't test the reSt feature if docutils
-        # is not installed
+        # is not installed or we our on py3k
         try:
             import docutils
-        except ImportError:
+        except Exception:
             return
 
         # metadata are OK but long_description is broken