Permalink
Browse files

- coverage by default is annoying

- add a memcached ping to the start of test_memcached so no failures if memcached isn't running

--HG--
branch : trunk
  • Loading branch information...
zzzeek
zzzeek committed Feb 6, 2011
1 parent 5efd494 commit f372023d82547ed575ea2eb8e82268d8dd859824
Showing with 7 additions and 1 deletion.
  1. +1 −1 setup.cfg
  2. +6 −0 tests/test_memcached.py
View
@@ -7,6 +7,6 @@ where=tests
verbose=True
detailed-errors=True
with-doctest=True
-with-coverage=True
+#with-coverage=True
cover-package=beaker
cover-inclusive=True
View
@@ -15,6 +15,12 @@
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)

0 comments on commit f372023

Please sign in to comment.