Skip to content

Commit e252811

Browse files
committed
Improve documentation
1 parent 8b71ccc commit e252811

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/development_guide/contributor_guide/tests/writing_test.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ Supported operators are ``<``, ``<=``, ``>`` and ``>=``.
7676
def some_func() -> X: # <3.14:[undefined-variable]
7777
...
7878
79+
# It can also be combined with offsets
80+
# +1:<3.14:[undefined-variable]
81+
def some_other_func() -> X:
82+
...
83+
7984
class X: ...
8085
8186
Since the output messages are different, it is necessary to add two separate files for it.
@@ -84,7 +89,7 @@ Second ``<test-file-name>.txt``, this will be the default for all other Python v
8489

8590
.. note::
8691

87-
This does only work if the code itself is valid in all tested Python versions.
92+
This does only work if the code itself is parsable in all tested Python versions.
8893
For new syntax, use ``min_pyver`` / ``max_pyver`` instead.
8994

9095
**Functional test file locations**

0 commit comments

Comments
 (0)