From fbaaa37df6011206ed521e61fff38c0527021222 Mon Sep 17 00:00:00 2001 From: C Nelson Date: Fri, 30 Mar 2012 15:36:30 -0500 Subject: [PATCH] With unittest, skipping a test should actually skip instead of asserting False. --- pythoscope/generator/builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythoscope/generator/builder.py b/pythoscope/generator/builder.py index 83fcb52..b23652c 100644 --- a/pythoscope/generator/builder.py +++ b/pythoscope/generator/builder.py @@ -30,7 +30,7 @@ def equal_assertion(self, expected, actual): def raises_assertion(self, exception, call): return combine(exception, call, "self.assertRaises(%s, %s)") def skip_test(self): - return CodeString("assert False # TODO: implement your test here") + return CodeString("self.skipTest('# TODO: implement your test here.')") class NoseTemplate(Template): def equal_assertion(self, expected, actual):