diff options
author | Sean Reifschneider <jafo@tummy.com> | 2011-11-27 16:23:18 -0700 |
---|---|---|
committer | Sean Reifschneider <jafo@tummy.com> | 2011-11-27 16:23:18 -0700 |
commit | 611f39c9619b480f402f3a305b17a653075d505d (patch) | |
tree | a019691d69523f0ae1abdd6510d6a434ed158625 | |
parent | f5b4258403331ac368ab08673b150b461c9dfeac (diff) | |
download | python-memcached-611f39c9619b480f402f3a305b17a653075d505d.tar.gz |
Adding Makefile and fixing tests.
-rw-r--r-- | Makefile | 8 | ||||
-rw-r--r-- | memcache.py | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ae911d6 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +test: + python memcache.py + +clean: + rm -f memcache.pyc memcache.py.orig + +push: + bzr push lp:python-memcached diff --git a/memcache.py b/memcache.py index bcc872d..1bbb0ab 100644 --- a/memcache.py +++ b/memcache.py @@ -1117,6 +1117,7 @@ if __name__ == "__main__": return "%s (%s)" % (val, type(val)) return "%s" % val def test_setget(key, val): + global failures print "Testing set/get {'%s': %s} ..." % (to_s(key), to_s(val)), mc.set(key, val) newval = mc.get(key) |