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 fd7bfa3 commit 27bb2ecCopy full SHA for 27bb2ec
testing/test_assertrewrite.py
@@ -65,6 +65,9 @@ class TestAssertionRewrite(object):
65
def test_place_initial_imports(self):
66
s = """'Doc string'\nother = stuff"""
67
m = rewrite(s)
68
+ # Module docstrings in 3.7 are part of Module node, it's not in the body
69
+ # so we remove it so the following body items have the same indexes on
70
+ # all Python versions
71
if sys.version_info < (3, 7):
72
assert isinstance(m.body[0], ast.Expr)
73
assert isinstance(m.body[0].value, ast.Str)
0 commit comments