From 9e264f197e550ee70f1e40e311bead7778d959d4 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 28 Jan 2010 07:33:51 -0500 Subject: Don't accidentally spawn VISUAL in Comment doctests. --- libbe/command/comment.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libbe/command/comment.py b/libbe/command/comment.py index cb46398..6ab588f 100644 --- a/libbe/command/comment.py +++ b/libbe/command/comment.py @@ -64,6 +64,8 @@ class Comment (libbe.command.Command): >>> if 'EDITOR' in os.environ: ... del os.environ['EDITOR'] + >>> if 'VISUAL' in os.environ: + ... del os.environ['VISUAL'] >>> ui._user_id = u'Frank' >>> ret = ui.run(cmd, args=['/b']) Traceback (most recent call last): @@ -83,6 +85,7 @@ class Comment (libbe.command.Command): >>> ui.cleanup() >>> bd.cleanup() + >>> del os.environ("EDITOR") """ name = 'comment' -- cgit