Mercurial > python-hglib
annotate test.py @ 89:351d2799f145
client: added context manager protocol methods
This allows client objects to be used with the 'with' statement and be closed
automatically when the 'with' context exits.
author | Jeff Laughlin <jmlaughlin@integrated-informatics.com> |
---|---|
date | Wed, 23 Nov 2011 09:57:37 -0500 |
parents | 37307caccf54 |
children |
rev | line source |
---|---|
76
37307caccf54
add a script to run tests with nose plugins loaded
Idan Kamara <idankk86@gmail.com>
parents:
diff
changeset
|
1 #!/usr/bin/env python |
37307caccf54
add a script to run tests with nose plugins loaded
Idan Kamara <idankk86@gmail.com>
parents:
diff
changeset
|
2 |
37307caccf54
add a script to run tests with nose plugins loaded
Idan Kamara <idankk86@gmail.com>
parents:
diff
changeset
|
3 import nose |
37307caccf54
add a script to run tests with nose plugins loaded
Idan Kamara <idankk86@gmail.com>
parents:
diff
changeset
|
4 from tests import with_hg |
37307caccf54
add a script to run tests with nose plugins loaded
Idan Kamara <idankk86@gmail.com>
parents:
diff
changeset
|
5 |
37307caccf54
add a script to run tests with nose plugins loaded
Idan Kamara <idankk86@gmail.com>
parents:
diff
changeset
|
6 if __name__ == '__main__': |
37307caccf54
add a script to run tests with nose plugins loaded
Idan Kamara <idankk86@gmail.com>
parents:
diff
changeset
|
7 nose.main(addplugins=[with_hg.WithHgPlugin()]) |