File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed
Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change 11import ast
22import inspect
3+ import sys
34
45from tests .util import requires_grpclib # noqa: F401
56
@@ -43,7 +44,19 @@ def test_documentation(requires_grpclib) -> None:
4344def test_escaping (requires_grpclib ) -> None :
4445 from .outputs .documentation .documentation import ComplexDocumentation
4546
46- assert ComplexDocumentation .__doc__ == """
47- A comment with backslashes \\ and triple quotes \" \" \"
48- Simple quotes are not escaped "
49- """
47+ if sys .version_info >= (3 , 13 ):
48+ assert (
49+ ComplexDocumentation .__doc__
50+ == """
51+ A comment with backslashes \\ and triple quotes \" \" \"
52+ Simple quotes are not escaped "
53+ """
54+ )
55+ else :
56+ assert (
57+ ComplexDocumentation .__doc__
58+ == """
59+ A comment with backslashes \\ and triple quotes \" \" \"
60+ Simple quotes are not escaped "
61+ """
62+ )
You can’t perform that action at this time.
0 commit comments