From: Benjamin Peterson Date: Sun, 19 Jul 2009 21:52:02 +0000 (+0000) Subject: skip test when distutils is not made for py3k X-Git-Tag: v3.2a1~2789 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=22101aa086ddf50928939b9a9cf84f9ca814e52a;p=thirdparty%2FPython%2Fcpython.git skip test when distutils is not made for py3k --- diff --git a/Lib/distutils/tests/test_register.py b/Lib/distutils/tests/test_register.py index c03ad1014701..acda1b1ac1df 100644 --- a/Lib/distutils/tests/test_register.py +++ b/Lib/distutils/tests/test_register.py @@ -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