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
Prev Previous commit
Next Next commit
[tests] Use distinct value for c_po kwarg
  • Loading branch information
jacobtylerwalls committed May 10, 2024
commit f1565de5658f3beeef5784966055c780291b231c
8 changes: 4 additions & 4 deletions Lib/test/test_inspect/test_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -5075,11 +5075,11 @@ def test(a_po, b_po, c_po=3, /, foo=42, *, bar=50, **kwargs):
self.assertEqual(self.call(test, 1, 2, foo=4, bar=5, c_po=10),
Comment thread
sobolevn marked this conversation as resolved.
(1, 2, 3, 4, 5, {'c_po': 10}))

self.assertEqual(self.call(test, 1, 2, 3, c_po=10, foo=4, bar=5),
(1, 2, 3, 4, 5, {'c_po': 10}))
self.assertEqual(self.call(test, 1, 2, 3, c_po=30, foo=4, bar=5),
Comment thread
jacobtylerwalls marked this conversation as resolved.
Outdated
(1, 2, 3, 4, 5, {'c_po': 30}))

self.assertEqual(self.call(test, 1, 2, 3, foo=4, bar=5, c_po=10),
(1, 2, 3, 4, 5, {'c_po': 10}))
self.assertEqual(self.call(test, 1, 2, 3, foo=4, bar=5, c_po=30),
(1, 2, 3, 4, 5, {'c_po': 30}))

self.assertEqual(self.call(test, 1, 2, c_po=4),
(1, 2, 3, 42, 50, {'c_po': 4}))
Expand Down