From 948eb61fd5e13b1e4d4030e69951a5d50c4b42b0 Mon Sep 17 00:00:00 2001 From: Martin Di Paola Date: Sun, 20 Feb 2022 23:47:48 +0000 Subject: [PATCH] Fix tests for Python 3.10 --- byexample/modules/delimiters.py | 2 +- docs/basic/options.md | 4 ++-- docs/languages/elixir.md | 2 +- docs/languages/go.md | 2 +- docs/languages/iasm.md | 2 +- docs/languages/java.md | 2 +- docs/languages/python.md | 2 +- docs/languages/ruby.md | 2 +- docs/languages/shell.md | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/byexample/modules/delimiters.py b/byexample/modules/delimiters.py index be136207..eb51cdb3 100644 --- a/byexample/modules/delimiters.py +++ b/byexample/modules/delimiters.py @@ -204,7 +204,7 @@ def near_offsets_of_docstrings(self, source, filepath=''): [w] A syntax error was found parsing "foo.py": we may not found all the examples in the docstrings correctly. [w] <...>File "foo.py", line 1 invalid syntax - <...> ^ + <...> ^<...> SyntaxError: invalid syntax >>> offsets is None True diff --git a/docs/basic/options.md b/docs/basic/options.md index 87dfb927..6bee6133 100644 --- a/docs/basic/options.md +++ b/docs/basic/options.md @@ -42,13 +42,13 @@ For ``Python`` you could do: $ byexample -l python --show-options byexample's options ------------------- -optional arguments: +<...>: +fail-fast if an example fails, fail and stop all the execution. +norm-ws ignore the amount of whitespaces. <...> python's specific options ------------------------- -optional arguments: +<...> +py-doctest enable the compatibility with doctest. +py-pretty-print enable the pretty print enhancement. <...> diff --git a/docs/languages/elixir.md b/docs/languages/elixir.md index 064d9088..02a1bc6f 100644 --- a/docs/languages/elixir.md +++ b/docs/languages/elixir.md @@ -146,7 +146,7 @@ $ byexample -l elixir --show-options # byexample: +norm-ws <...> elixir's specific options ------------------------- -optional arguments: +<...>: +elixir-dont-display-hack required for IEx < 1.9. +elixir-expr-print {auto,true,false} diff --git a/docs/languages/go.md b/docs/languages/go.md index d3b98dd8..291115d5 100644 --- a/docs/languages/go.md +++ b/docs/languages/go.md @@ -195,7 +195,7 @@ $ byexample -l go --show-options # byexample: +norm-ws <...> go's specific options --------------------- -optional arguments: +<...>: +go-expr-print {auto,true,false} print the expression's value (true); suppress it (false); or print it only if the example has a colon diff --git a/docs/languages/iasm.md b/docs/languages/iasm.md index dc873801..14571b4d 100644 --- a/docs/languages/iasm.md +++ b/docs/languages/iasm.md @@ -146,7 +146,7 @@ $ byexample -l iasm --show-options # byexample: +norm-ws <...> iasm's specific options ----------------------- -optional arguments: +<...>: +iasm-arch architecture name (arm, x86, sparc, ...); see iasm documentation. +iasm-mode mode (arm, 32, 64, ...); see iasm documentation. diff --git a/docs/languages/java.md b/docs/languages/java.md index 25095d8f..6f6d16ad 100644 --- a/docs/languages/java.md +++ b/docs/languages/java.md @@ -155,7 +155,7 @@ $ byexample -l java --show-options # byexample: +norm-ws -capture <...> java's specific options ----------------------- -optional arguments: +<...>: +java-expr-print {auto,true,false} print the expression's value (true); suppress it (false); or print it only if the example has a => diff --git a/docs/languages/python.md b/docs/languages/python.md index 47289611..dc0018f0 100644 --- a/docs/languages/python.md +++ b/docs/languages/python.md @@ -471,7 +471,7 @@ $ byexample -l python --show-options # byexample: +norm-ws <...> python's specific options ------------------------- -optional arguments: +<...>: +py-doctest enable the compatibility with doctest. +py-pretty-print enable the pretty print enhancement. +py-remove-empty-lines diff --git a/docs/languages/ruby.md b/docs/languages/ruby.md index addeed6e..bd6ec505 100644 --- a/docs/languages/ruby.md +++ b/docs/languages/ruby.md @@ -115,7 +115,7 @@ $ byexample -l ruby --show-options # byexample: +norm-ws <...> ruby's specific options ----------------------- -optional arguments: +<...>: +ruby-pretty-print enable the pretty print enhancement. +ruby-expr-print {auto,true,false} print the expression's value (true); suppress it diff --git a/docs/languages/shell.md b/docs/languages/shell.md index 78a4e59f..b6480ddd 100644 --- a/docs/languages/shell.md +++ b/docs/languages/shell.md @@ -381,7 +381,7 @@ $ byexample -l shell --show-options # byexample: +norm-ws <...> shell's specific options ------------------------ -optional arguments: +<...>: +stop-on-timeout stop the process if it timeout. +stop-on-silence [secs] stop the process if no output is read in the last