Skip to content

Commit

Permalink
Fix tests for Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
eldipa committed Feb 21, 2022
1 parent 9f2a0fe commit 948eb61
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion byexample/modules/delimiters.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def near_offsets_of_docstrings(self, source, filepath='<string>'):
[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
Expand Down
4 changes: 2 additions & 2 deletions docs/basic/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
<...>
Expand Down
2 changes: 1 addition & 1 deletion docs/languages/elixir.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion docs/languages/go.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/languages/iasm.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ $ byexample -l iasm --show-options # byexample: +norm-ws
<...>
iasm's specific options
-----------------------
optional arguments:
<...>:
+iasm-arch <arch> architecture name (arm, x86, sparc, ...); see iasm
documentation.
+iasm-mode <mode> mode (arm, 32, 64, ...); see iasm documentation.
Expand Down
2 changes: 1 addition & 1 deletion docs/languages/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
Expand Down
2 changes: 1 addition & 1 deletion docs/languages/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/languages/ruby.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/languages/shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 948eb61

Please sign in to comment.