gh-133379: Fix misuse of the term "arguments" in error messages (GH-133382)

The right term is "parameters".
This commit is contained in:
Stan Ulbrych 2025-05-10 13:00:43 +01:00 committed by GitHub
parent f28cbc9fd3
commit dbca27cfca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 72 additions and 68 deletions

View file

@ -113,7 +113,7 @@ class TestSimpleInteract(unittest.TestCase):
r = """
def f(x, x): ...
^
SyntaxError: duplicate argument 'x' in function definition"""
SyntaxError: duplicate parameter 'x' in function definition"""
self.assertIn(r, f.getvalue())
def test_runsource_shows_syntax_error_for_failed_compilation(self):