Skip to content

Commit ce5ae50

Browse files
Add some comments to the tested invalid scripts.
1 parent b3f80aa commit ce5ae50

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Lib/test/test_crossinterp.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -782,11 +782,13 @@ def eggs(self):
782782
""",
783783
]
784784
INVALID_SCRIPTS = [
785-
' pass',
786-
'----',
785+
' pass', # IndentationError
786+
'----', # SyntaxError
787787
"""if True:
788-
# do something
789-
""",
788+
def spam():
789+
# no body
790+
spam()
791+
""", # IndentationError
790792
]
791793

792794
def test_valid_str(self):

0 commit comments

Comments
 (0)