Status: New
Owner: ----
New issue 1525 by zimmermann.c...@gmail.com: Confusing(?) error messages
from Keyword arguments check
http://code.google.com/p/robotframework/issues/detail?id=1525
This is not really a problem. I just encountered it and think... :)
When you wrongly call SomeKeyword [ arg ] like this:
SomeKeyword value arg=value
Then you get "expected 1 argument, got 2"
instead of "got multiple values for argument 'arg'"
That might be ok.
But when you call SomeKeyword [ arg | **kwargs ] the same way
and get "expected 1 non-keyword argument, got 2"
instead of "got multiple values..."
it could get a bit confusing.
It results from the check order in ArgumentValidator.validate():
1. self._validate_limits()
2. self._validate_no_multiple_values()
Maybe this should simply be switched.
It wouldn't break anything.
atests are running as normal.
They don't seem to explicitly check this.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.