[Checkins] SVN: grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/directive/argumenterror Since the order of directive checking changed, the grok.name directive

Jan-Wijbrand Kolman janwijbrand at gmail.com
Sat May 3 04:26:05 EDT 2008


Log message for revision 86152:
  Since the order of directive checking changed, the grok.name directive
  is put in the class (where it belongs anyway). Fix test since the error
  reporting changed.

Changed:
  U   grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/directive/argumenterror.py
  U   grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/directive/argumenterror_fixture.py

-=-
Modified: grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/directive/argumenterror.py
===================================================================
--- grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/directive/argumenterror.py	2008-05-03 02:26:20 UTC (rev 86151)
+++ grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/directive/argumenterror.py	2008-05-03 08:26:02 UTC (rev 86152)
@@ -2,5 +2,6 @@
    >>> import grokcore.component.tests.directive.argumenterror_fixture
    Traceback (most recent call last):
      ...
-   TypeError: grok.name takes exactly 1 argument (3 given)
+   TypeError: name takes exactly 1 argument (3 given)
+
 """

Modified: grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/directive/argumenterror_fixture.py
===================================================================
--- grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/directive/argumenterror_fixture.py	2008-05-03 02:26:20 UTC (rev 86151)
+++ grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/directive/argumenterror_fixture.py	2008-05-03 08:26:02 UTC (rev 86152)
@@ -1,3 +1,4 @@
 import grokcore.component as grok
 
-grok.name('too', 'many', 'arguments')
+class Foo(object):
+    grok.name('too', 'many', 'arguments')



More information about the Checkins mailing list