doc fix: 'x' should be '-x' so it is not interpreted as a filename

This commit is contained in:
Sasha Hart 2013-04-03 14:51:06 -05:00
parent 712898cfe1
commit 265a4de06e
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ this acts as if you would call "py.test" from the command line.
It will not raise ``SystemExit`` but return the exitcode instead.
You can pass in options and arguments::
pytest.main(['x', 'mytestdir'])
pytest.main(['-x', 'mytestdir'])
or pass in a string::

View File

@ -276,7 +276,7 @@ Python コードから直接 ``py.test`` を呼び出せます::
これはコマンドラインから "py.test" を呼び出すように動作します。 ``SystemExit`` を発生させない代わりに終了コードを返します。次のようにオプションと引数を渡します::
pytest.main(['x', 'mytestdir'])
pytest.main(['-x', 'mytestdir'])
..
or pass in a string::