skip test when distutils is not made for py3k

This commit is contained in:
Benjamin Peterson 2009-07-19 21:52:02 +00:00
parent bed7d04fed
commit 22101aa086
1 changed files with 2 additions and 2 deletions

View 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