summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tabnanny.py
diff options
context:
space:
mode:
authorMarta Gómez Macías <mgmacias@google.com>2023-05-22 11:30:18 (GMT)
committerGitHub <noreply@github.com>2023-05-22 11:30:18 (GMT)
commit729b252241966f464cc46e176fb854dbcc5296cb (patch)
tree504b8a8c45364d456124dcbe79140bd0a5b7c2ad /Lib/test/test_tabnanny.py
parent0a7796052acb9cec8b13f8d0a5f304f56f26ec5b (diff)
downloadcpython-729b252241966f464cc46e176fb854dbcc5296cb.zip
cpython-729b252241966f464cc46e176fb854dbcc5296cb.tar.gz
cpython-729b252241966f464cc46e176fb854dbcc5296cb.tar.bz2
gh-104741: Add line number attribute to indentation error exception (#104743)
Diffstat (limited to 'Lib/test/test_tabnanny.py')
-rw-r--r--Lib/test/test_tabnanny.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_tabnanny.py b/Lib/test/test_tabnanny.py
index dac4731..aa70011 100644
--- a/Lib/test/test_tabnanny.py
+++ b/Lib/test/test_tabnanny.py
@@ -317,7 +317,7 @@ class TestCommandLine(TestCase):
with TemporaryPyFile(SOURCE_CODES["wrong_indented"]) as file_path:
stderr = f"{file_path!r}: Token Error: "
stderr += ('unindent does not match any outer indentation level'
- ' (<tokenize>, line 3)')
+ ' (<string>, line 3)')
self.validate_cmd(file_path, stderr=stderr, expect_failure=True)
def test_with_error_free_file(self):