mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Add a test for calling a weakref proxy with a dictionary of keyword args.
This commit is contained in:
parent
31f4d1fa4b
commit
3bb4d214a4
1 changed files with 3 additions and 0 deletions
|
@ -160,6 +160,9 @@ class ReferencesTestCase(TestBase):
|
|||
ref1('twinkies!')
|
||||
self.assert_(o.bar == 'twinkies!',
|
||||
"call through proxy not passed through to original")
|
||||
ref1(x='Splat.')
|
||||
self.assert_(o.bar == 'Splat.',
|
||||
"call through proxy not passed through to original")
|
||||
|
||||
# expect due to too few args
|
||||
self.assertRaises(TypeError, ref1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue