aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_pyrepl/test_pyrepl.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_pyrepl/test_pyrepl.py')
-rw-r--r--Lib/test/test_pyrepl/test_pyrepl.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/Lib/test/test_pyrepl/test_pyrepl.py b/Lib/test/test_pyrepl/test_pyrepl.py
index 012ce7c5a6b..d9d83c4c07e 100644
--- a/Lib/test/test_pyrepl/test_pyrepl.py
+++ b/Lib/test/test_pyrepl/test_pyrepl.py
@@ -466,6 +466,24 @@ class TestPyReplAutoindent(TestCase):
output = multiline_input(reader)
self.assertEqual(output, output_code)
+ def test_auto_indent_with_multicomment(self):
+ # fmt: off
+ events = code_to_events(
+ "def f(): ## foo\n"
+ "pass\n\n"
+ )
+
+ output_code = (
+ "def f(): ## foo\n"
+ " pass\n"
+ " "
+ )
+ # fmt: on
+
+ reader = self.prepare_reader(events)
+ output = multiline_input(reader)
+ self.assertEqual(output, output_code)
+
def test_auto_indent_ignore_comments(self):
# fmt: off
events = code_to_events(