doc fix: 'x' should be '-x' so it is not interpreted as a filename
This commit is contained in:
parent
712898cfe1
commit
265a4de06e
|
@ -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::
|
||||
|
||||
|
|
|
@ -276,7 +276,7 @@ Python コードから直接 ``py.test`` を呼び出せます::
|
|||
|
||||
これはコマンドラインから "py.test" を呼び出すように動作します。 ``SystemExit`` を発生させない代わりに終了コードを返します。次のようにオプションと引数を渡します::
|
||||
|
||||
pytest.main(['x', 'mytestdir'])
|
||||
pytest.main(['-x', 'mytestdir'])
|
||||
|
||||
..
|
||||
or pass in a string::
|
||||
|
|
Loading…
Reference in New Issue