summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/tests/test_register.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_register.py b/Lib/distutils/tests/test_register.py
index c03ad10..acda1b1 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