Commits

Anonymous committed cf8c227

- coverage by default is annoying
- add a memcached ping to the start of test_memcached so no failures if memcached isn't running

  • Participants
  • Parent commits 8a01857

Comments (0)

Files changed (2)

 verbose=True
 detailed-errors=True
 with-doctest=True
-with-coverage=True
+#with-coverage=True
 cover-package=beaker
 cover-inclusive=True

File tests/test_memcached.py

 
 mc_url = '127.0.0.1:11211'
 
+from beaker.ext.memcached import memcache
+c = memcache.Client([mc_url])
+c.set('x', 'y')
+if not c.get('x'):
+    raise SkipTest("Memcached is not running at %s" % mc_url)
+
 def teardown():
     import shutil
     shutil.rmtree('./cache', True)