summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-07-19 21:52:02 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-07-19 21:52:02 (GMT)
commit22101aa086ddf50928939b9a9cf84f9ca814e52a (patch)
tree40a29eda25afd59729d5ac87b1e0c089d55aace0 /Lib/distutils/tests
parentbed7d04fedd800a8d3bd8a7c9c3ff823e365c236 (diff)
downloadcpython-22101aa086ddf50928939b9a9cf84f9ca814e52a.zip
cpython-22101aa086ddf50928939b9a9cf84f9ca814e52a.tar.gz
cpython-22101aa086ddf50928939b9a9cf84f9ca814e52a.tar.bz2
skip test when distutils is not made for py3k
Diffstat (limited to 'Lib/distutils/tests')
-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