]> granicus.if.org Git - python/commitdiff
Add a test for calling a weakref proxy with a dictionary of keyword args.
authorFred Drake <fdrake@acm.org>
Thu, 18 Oct 2001 19:28:29 +0000 (19:28 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 18 Oct 2001 19:28:29 +0000 (19:28 +0000)
Lib/test/test_weakref.py

index 5e56717823880597a22f55a408d6218ede180db7..87c16709be3cadc873abfba362fe1a9966996f14 100644 (file)
@@ -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)