From 265a4de06e22e15edcae8538058979eb636e7632 Mon Sep 17 00:00:00 2001 From: Sasha Hart Date: Wed, 3 Apr 2013 14:51:06 -0500 Subject: [PATCH] doc fix: 'x' should be '-x' so it is not interpreted as a filename --- doc/en/usage.txt | 2 +- doc/ja/usage.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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::