We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdae6e3 commit 662476aCopy full SHA for 662476a
betterproto2/tests/test_documentation.py
@@ -1,5 +1,6 @@
1
import ast
2
import inspect
3
+import sys
4
5
from tests.util import requires_grpclib # noqa: F401
6
@@ -43,7 +44,19 @@ def test_documentation(requires_grpclib) -> None:
43
44
def test_escaping(requires_grpclib) -> None:
45
from .outputs.documentation.documentation import ComplexDocumentation
46
- ComplexDocumentation.__doc__ == """
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
57
58
59
A comment with backslashes \\ and triple quotes \"\"\"
60
Simple quotes are not escaped "
61
"""
62
0 commit comments