Ensure the docstring is a string
This commit is contained in:
parent
5eaf8207eb
commit
9859c110cc
|
@ -687,6 +687,7 @@ class AssertionRewriter(ast.NodeVisitor):
|
|||
expect_docstring
|
||||
and isinstance(item, ast.Expr)
|
||||
and isinstance(item.value, astStr)
|
||||
and isinstance(item.value.value, str)
|
||||
):
|
||||
if sys.version_info >= (3, 8):
|
||||
doc = item.value.value
|
||||
|
|
Loading…
Reference in New Issue