[pywin32-checkins] pywin32/win32/Demos win32netdemo.py,1.6,1.7
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: Mark H. <mha...@us...> - 2009-01-30 05:11:21
|
Update of /cvsroot/pywin32/pywin32/win32/Demos In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv3623 Modified Files: win32netdemo.py Log Message: don't create and delete a test user by default Index: win32netdemo.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/Demos/win32netdemo.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** win32netdemo.py 1 Oct 2008 14:44:53 -0000 1.6 --- win32netdemo.py 30 Jan 2009 05:11:17 -0000 1.7 *************** *** 183,186 **** --- 183,187 ---- print " -v : Verbose - print more information" print " -s : server - execute the tests against the named server" + print " -c : include the CreateUser test by default" print "where Test is one of:" for t in tests: *************** *** 195,199 **** if type(ob)==type(main) and ob.__doc__: tests.append(ob) ! opts, args = getopt.getopt(sys.argv[1:], "s:hv") for opt, val in opts: if opt=="-s": --- 196,201 ---- if type(ob)==type(main) and ob.__doc__: tests.append(ob) ! opts, args = getopt.getopt(sys.argv[1:], "s:hvc") ! create_user = False for opt, val in opts: if opt=="-s": *************** *** 205,212 **** --- 207,218 ---- global verbose_level verbose_level = verbose_level + 1 + if opt=="-c": + create_user = True if len(args)==0: print "Running all tests - use '-h' to see command-line options..." dotests = tests + if not create_user: + dotests.remove(CreateUser) else: dotests = [] |