diff --git a/doc/en/usage.txt b/doc/en/usage.txt index eb8b0911c..de3a501f4 100644 --- a/doc/en/usage.txt +++ b/doc/en/usage.txt @@ -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:: diff --git a/doc/ja/usage.txt b/doc/ja/usage.txt index 84f93989f..a0dfe8f29 100644 --- a/doc/ja/usage.txt +++ b/doc/ja/usage.txt @@ -276,7 +276,7 @@ Python コードから直接 ``py.test`` を呼び出せます:: これはコマンドラインから "py.test" を呼び出すように動作します。 ``SystemExit`` を発生させない代わりに終了コードを返します。次のようにオプションと引数を渡します:: - pytest.main(['x', 'mytestdir']) + pytest.main(['-x', 'mytestdir']) .. or pass in a string::