[conduit: 135/138] Stub to run a test inside pdb



commit 2f32d950c153e589b0a3dbe4fee1b500fcbca0ae
Author: John Carr <john carr unrouted co uk>
Date:   Thu May 7 03:08:34 2009 -0700

    Stub to run a test inside pdb
---
 test/soup/env/debug.py |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/test/soup/env/debug.py b/test/soup/env/debug.py
new file mode 100644
index 0000000..16b2dac
--- /dev/null
+++ b/test/soup/env/debug.py
@@ -0,0 +1,16 @@
+
+import soup
+
+import pdb
+
+class Debugger(soup.env.EnvironmentWrapper):
+
+    @classmethod
+    def enabled(cls, opts):
+        return False
+
+    def decorate_test(self, test):
+        def _(*args, **kwargs):
+            pdb.runcall(test, *args, **kwargs)
+        return _
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]