aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command/comment.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-01-28 07:33:51 -0500
committerW. Trevor King <wking@drexel.edu>2010-01-28 07:33:51 -0500
commit9e264f197e550ee70f1e40e311bead7778d959d4 (patch)
treecb3b99f9ad2d19ed0464b4f417774bafb52b9302 /libbe/command/comment.py
parent9b42ab6d3e2372c2c0f26a0788f8b84d1d346171 (diff)
downloadbugseverywhere-9e264f197e550ee70f1e40e311bead7778d959d4.tar.gz
Don't accidentally spawn VISUAL in Comment doctests.
Diffstat (limited to 'libbe/command/comment.py')
-rw-r--r--libbe/command/comment.py3
1 files changed, 3 insertions, 0 deletions
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):
<BLANKLINE>
>>> ui.cleanup()
>>> bd.cleanup()
+ >>> del os.environ("EDITOR")
"""
name = 'comment'