From c55d618d78d1991a376b10cd8151aaf913d79c8c Mon Sep 17 00:00:00 2001 From: frans Date: Thu, 10 Sep 2015 11:27:53 +0200 Subject: [PATCH] nosetests trace snippet --- snippets/python.snippets | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/snippets/python.snippets b/snippets/python.snippets index 0e1f624..d8f0105 100644 --- a/snippets/python.snippets +++ b/snippets/python.snippets @@ -148,6 +148,9 @@ snippet ptpython # python console debugger (pudb) snippet pudb import pudb; pudb.set_trace() +# pdb in nosetests +snippet nosetrace + from nose.tools import set_trace; set_trace() snippet pprint import pprint; pprint.pprint(${1}) snippet " @@ -225,5 +228,3 @@ snippet kwargs **kwargs${1:,}${0} snippet akw *args, **kwargs${1:,}${0} -snippet nosetrace - from nose.tools import set_trace; set_trace()