projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b42ab6
)
Don't accidentally spawn VISUAL in Comment doctests.
author
W. Trevor King
<wking@drexel.edu>
Thu, 28 Jan 2010 12:33:51 +0000
(07:33 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Thu, 28 Jan 2010 12:33:51 +0000
(07:33 -0500)
libbe/command/comment.py
patch
|
blob
|
history
diff --git
a/libbe/command/comment.py
b/libbe/command/comment.py
index cb463980131288bbe3d37d12dad9750c6db1a9d9..6ab588f71bb3eda4f14edc074d3992efaf509c5c 100644
(file)
--- 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'