allow to run py.test.cmdline.main() multiple times.

--HG--
branch : trunk
This commit is contained in:
holger krekel
2010-05-11 19:56:22 +02:00
parent 0f5ed3abc7
commit 8ba2a98e11
6 changed files with 33 additions and 7 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env python
import py
def main(args):
py.test.cmdline.main(args)
def main(args=None):
raise SystemExit(py.test.cmdline.main(args))