Pierre Rouleau wrote:

> Maciek,
>
> I noticed a couple of typos in the command line strings in
> test/cmdline.py and test/defaultconftest.py.
>
> Here's the diff for the changes I made locally.
>
> The universal diff output files are attached.
>
> Very minor changes, but ...
>
> P.R.
>
>------------------------------------------------------------------------
>
>Index: C:/py-dist/py/test/cmdline.py
>===================================================================
>--- C:/py-dist/py/test/cmdline.py      (revision 34637)
>+++ C:/py-dist/py/test/cmdline.py      (working copy)
>@@ -32,7 +32,7 @@
>         config.option.startserver = True
>     try:
>         if config.getinitialvalue('startserver'):
>-            py.std.warnings.warn("Startserver flag in config is deprecated, 
>use commandline option istead")
>+            py.std.warnings.warn("Startserver flag in config is deprecated, 
>use commandline option instead")
>     except ValueError:
>         pass
>     
>  
>
>------------------------------------------------------------------------
>
>Index: C:/py-dist/py/test/defaultconftest.py
>===================================================================
>--- C:/py-dist/py/test/defaultconftest.py      (revision 34637)
>+++ C:/py-dist/py/test/defaultconftest.py      (working copy)
>@@ -15,7 +15,7 @@
>     py.test.Config.addoptions('general options',
>         Option('-v', '--verbose',
>                action="count", dest="verbose", default=0,
>-               help="increase verbosity"),
>+               help="increase verbosity."),
>         Option('-x', '--exitfirst',
>                action="store_true", dest="exitfirst", default=False,
>                help="exit instantly on first error or failed test."),
>@@ -24,33 +24,33 @@
>                help="disable catching of sys.stdout/stderr output."),
>         Option('-k',
>                action="store", dest="keyword", default='',
>-               help="only run test items matching the given (google-style) 
>keyword expression"),
>+               help="only run test items matching the given (google-style) 
>keyword expression."),
>         Option('-l', '--showlocals',
>                action="store_true", dest="showlocals", default=False,
>-               help="show locals in tracebacks (disabled by default)"),
>+               help="show locals in tracebacks (disabled by default)."),
>         Option('', '--pdb',
>                action="store_true", dest="usepdb", default=False,
>                help="start pdb (the Python debugger) on errors."),
>         Option('', '--tb',
>                action="store", dest="tbstyle", default='long',
>                type="choice", choices=['long', 'short', 'no'],
>-               help="traceback verboseness (long/short/no)"),
>+               help="traceback verboseness (long/short/no)."),
>         Option('', '--fulltrace',
>                action="store_true", dest="fulltrace", default=False,
>-               help="don't cut any tracebacks (default is to cut)"),
>+               help="don't cut any tracebacks (default is to cut)."),
>         Option('', '--nomagic',
>                action="store_true", dest="nomagic", default=False,
>-               help="refrain from using magic as much as possible"),
>+               help="refrain from using magic as much as possible."),
>         Option('', '--collectonly',
>                action="store_true", dest="collectonly", default=False,
>-               help="only collect tests, don't execute them. "),
>+               help="only collect tests, don't execute them."),
>         Option('', '--traceconfig',
>                action="store_true", dest="traceconfig", default=False,
>-               help="trace considerations of conftest.py files. "),
>+               help="trace considerations of conftest.py files."),
>         Option('', '--apigen',
>                action="store_true", dest="apigen", default=False,
>-               help="Generated API docs out of tests. Needs to have defined"\
>-               "__package__ for module or overwritten in conftest")
>+               help="Generated API docs out of tests. Needs to have defined "\
>+               "__package__ for module or overwritten in conftest.")
>     )
>     py.test.Config.addoptions('test-session related options', 
>         Option('', '--tkinter',
>@@ -67,11 +67,11 @@
>                help="python executable to run the tests with. "),
>         Option('-w', '--startserver',
>                action="store_true", dest="startserver", default=False,
>-               help="Start HTTP server listening on localhost:8000 for test"
>+               help="Start HTTP server listening on localhost:8000 for test."
>                ),
>         Option('', '--runbrowser',
>                action="store_true", dest="runbrowser", default=False,
>-               help="Run browser to point to your freshly started web server"
>+               help="Run browser to point to your freshly started web server."
>                ),
>     )
>     
>  
>
Thx a lot. Commited. It really doesn't matter that the changes are 
minor, we appreciate any feedback.
_______________________________________________
py-dev mailing list
py-dev@codespeak.net
http://codespeak.net/mailman/listinfo/py-dev

Reply via email to