From 7c6b6c4893926d8e0317673dfd1cc335a17ebeee Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Tue, 1 Jan 2008 12:44:17 -0500 Subject: [PATCH] Allow passing -d when running shell_buffer.py tests --- lib/reinteract/shell_buffer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/reinteract/shell_buffer.py b/lib/reinteract/shell_buffer.py index 7541e0f..d113d29 100755 --- a/lib/reinteract/shell_buffer.py +++ b/lib/reinteract/shell_buffer.py @@ -6,6 +6,7 @@ import logging import traceback import os import re +import sys import doc_format from notebook import Notebook, HelpResult from statement import Statement, ExecutionError, WarningResult @@ -1411,6 +1412,9 @@ class ShellBuffer(gtk.TextBuffer, Worksheet): return obj, start_iter, end_iter if __name__ == '__main__': + if "-d" in sys.argv: + logging.basicConfig(level=logging.DEBUG, format="DEBUG: %(message)s") + S = StatementChunk B = BlankChunk C = CommentChunk -- 2.11.4.GIT