summary refs log tree commit diff stats
path: root/test/__init__.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-05-03 14:03:55 +0200
committerhut <hut@lavabit.com>2010-05-03 23:58:07 +0200
commit9594738888c6676e46ffc0a9d5b8dde808cd88eb (patch)
treee2ac33582b864087afc8a9ecf71de266bc31a16e /test/__init__.py
parentb0a216f59a7770f5ce35f4a56b5055c51ceec284 (diff)
downloadranger-9594738888c6676e46ffc0a9d5b8dde808cd88eb.tar.gz
test: added TODO, skip broken tests
Diffstat (limited to 'test/__init__.py')
-rw-r--r--test/__init__.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/__init__.py b/test/__init__.py
index e5f8a300..d87d1fc2 100644
--- a/test/__init__.py
+++ b/test/__init__.py
@@ -19,6 +19,14 @@ __all__ = [ x[0:x.index('.')] \
 		for x in os.listdir(os.path.dirname(__file__)) \
 		if x.startswith('tc_') or x.startswith('bm_')]
 
+def TODO(fnc):
+	def result(*arg, **kw):
+		try:
+			fnc(*arg, **kw)
+		except:
+			pass # failure expected
+	return result
+
 def init():
 	sys.path.append(os.path.abspath(os.path.join(sys.path[0], '..')))