summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pyrepl/test_reader.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-05-31 09:51:53 (GMT)
committerGitHub <noreply@github.com>2024-05-31 09:51:53 (GMT)
commit38bf39cb4be279cce6c97da26afcc60859a01571 (patch)
tree54e2ae975d993aac16c5e88312fd64a2ed5776fe /Lib/test/test_pyrepl/test_reader.py
parent7dae73b21b500e34ebb070a4d3774e09d83d6c1d (diff)
downloadcpython-38bf39cb4be279cce6c97da26afcc60859a01571.zip
cpython-38bf39cb4be279cce6c97da26afcc60859a01571.tar.gz
cpython-38bf39cb4be279cce6c97da26afcc60859a01571.tar.bz2
[3.13] gh-111201: Improve pyrepl auto indentation (GH-119606) (GH-119833)
- auto-indent when editing multi-line block - ignore comments (cherry picked from commit dae0375bd97f3821c5db1602a0653a3c5dc53c5b) Co-authored-by: Arnon Yaari <wiggin15@yahoo.com>
Diffstat (limited to 'Lib/test/test_pyrepl/test_reader.py')
-rw-r--r--Lib/test/test_pyrepl/test_reader.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_pyrepl/test_reader.py b/Lib/test/test_pyrepl/test_reader.py
index 7bf7a36..c9b03d5 100644
--- a/Lib/test/test_pyrepl/test_reader.py
+++ b/Lib/test/test_pyrepl/test_reader.py
@@ -168,8 +168,8 @@ class TestReader(TestCase):
expected = (
"def foo():\n"
- "\n"
- "\n"
+ " \n"
+ " \n"
" a = 1\n"
" \n"
" " # HistoricalReader will trim trailing whitespace