1. Michael Merickel
  2. PasteScript


pjenvey  committed 32d22bf

just skip test_make_project if we lack the other reqs, don't really care to
have ZPTKit in tests_require

  • Participants
  • Parent commits 5c44db8
  • Branches default

Comments (0)

Files changed (1)

File tests/appsetup/test_make_project.py

View file
  • Ignore whitespace
 import urllib
 import os
+from nose import SkipTest
 from paste.fixture import *
 import pkg_resources
 for spec in ['PasteScript', 'Paste', 'PasteDeploy', 'PasteWebKit',
-    pkg_resources.require(spec)
+    try:
+        pkg_resources.require(spec)
+    except pkg_resources.DistributionNotFound, dnf:
+        raise SkipTest(repr(dnf))
 template_path = os.path.join(
     os.path.dirname(__file__), 'testfiles')