check the validity of kwargs passed to match_rtype stable
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Tue, 04 Jan 2011 16:12:48 +0100
branchstable
changeset 6767 0a18f25c16a7
parent 6766 1b091b3a0d1e
child 6768 b75f688bded7
child 6770 a613e81c9085
check the validity of kwargs passed to match_rtype
server/hook.py
--- a/server/hook.py	Tue Jan 04 15:31:07 2011 +0100
+++ b/server/hook.py	Tue Jan 04 16:12:48 2011 +0100
@@ -355,6 +355,7 @@
         self.expected = expected
         self.frometypes = more.pop('frometypes', None)
         self.toetypes = more.pop('toetypes', None)
+        assert not more, "unexpected kwargs in match_rtype: %s" % more
 
     @lltrace
     def __call__(self, cls, req, *args, **kwargs):