Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad error if dynamic or hybrid library returns invalid keyword names #2185

Closed
pekkaklarck opened this issue Oct 23, 2015 · 0 comments
Closed

Comments

@pekkaklarck
Copy link
Member

If a dynamic or hybrid library returns invalid keyword names (i.e. doesn't return a list of Unicode or UTF-8 strings), the resulting error doesn't contain the name of the invalid library.

This problem can be reproduced with the following library and test data. Running them causes an error like Error in file '/path/inv_dyn.robot': Calling dynamic method 'get_keyword_names' failed: Return value must be list of strings.. Same problem may also occur with other dynamic methods.

class Invalid(object):
    def get_keyword_names(self):
        return 1
*** Settings ***
Library  Invalid.py

*** Test Cases ***
Example
    Log    whatever
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants