Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update test_keywordonlyarg.py from 3.13.7
  • Loading branch information
ShaharNaveh committed Aug 31, 2025
commit b56082a9809fb4fc23c4e0bc8ae3967564471e15
8 changes: 3 additions & 5 deletions Lib/test/test_keywordonlyarg.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ def testSyntaxForManyArguments(self):
fundef = "def f(*, %s):\n pass\n" % ', '.join('i%d' % i for i in range(300))
compile(fundef, "<test>", "single")

# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.expectedFailure # TODO: RUSTPYTHON
def testTooManyPositionalErrorMessage(self):
def f(a, b=None, *, c=None):
pass
Expand Down Expand Up @@ -158,8 +157,7 @@ def test_issue13343(self):
# used to fail with a SystemError.
lambda *, k1=unittest: None

# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.expectedFailure # TODO: RUSTPYTHON
def test_mangling(self):
class X:
def f(self, *, __a=42):
Expand All @@ -174,7 +172,7 @@ def f(v=a, x=b, *, y=c, z=d):
pass
self.assertEqual(str(err.exception), "name 'b' is not defined")
with self.assertRaises(NameError) as err:
f = lambda v=a, x=b, *, y=c, z=d: None
g = lambda v=a, x=b, *, y=c, z=d: None
self.assertEqual(str(err.exception), "name 'b' is not defined")


Expand Down