diff options
author | Guido Guenther <agx@sigxcpu.org> | 2008-04-14 14:13:51 +0200 |
---|---|---|
committer | Guido Guenther <agx@sigxcpu.org> | 2008-04-14 14:13:51 +0200 |
commit | a793e8c5092955fb59647b0bf51da0a6d626d869 (patch) | |
tree | 2c74411196339ed9217eb7ba183b1a2ee231e576 /gbp/command_wrappers.py | |
parent | a8992fe33881dcfff7b9cf04448eaa54f6afc219 (diff) |
add _test()
to run doctests easily
Diffstat (limited to 'gbp/command_wrappers.py')
-rw-r--r-- | gbp/command_wrappers.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gbp/command_wrappers.py b/gbp/command_wrappers.py index 91e476e1..26064cda 100644 --- a/gbp/command_wrappers.py +++ b/gbp/command_wrappers.py @@ -245,4 +245,12 @@ def copy_from(orig_dir, filters=[]): raise GbpError, "Cannot copy files, pipe failed." return [ os.path.normpath(f) for f in files if files ] -# vim:et:ts=4:sw=4: + +def _test(): + import doctest + doctest.testmod() + +if __name__ == '__main__': + _test() + +# vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: |