[Python-checkins] r74097 - python/branches/py3k/Lib/distutils/tests/test_register.py

benjamin.peterson python-checkins at python.org
Sun Jul 19 23:52:07 CEST 2009


Author: benjamin.peterson
Date: Sun Jul 19 23:52:02 2009
New Revision: 74097

Log:
skip test when distutils is not made for py3k

Modified:
   python/branches/py3k/Lib/distutils/tests/test_register.py

Modified: python/branches/py3k/Lib/distutils/tests/test_register.py
==============================================================================
--- python/branches/py3k/Lib/distutils/tests/test_register.py	(original)
+++ python/branches/py3k/Lib/distutils/tests/test_register.py	Sun Jul 19 23:52:02 2009
@@ -202,10 +202,10 @@
         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


More information about the Python-checkins mailing list