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

Function result does not get saved into variable if function call spans two lines #505

Closed
Cronax42 opened this issue Nov 30, 2016 · 2 comments

Comments

@Cronax42
Copy link

Cronax42 commented Nov 30, 2016

In the interest of staying under a certain line-length I tried to split a statement as follows:

product_overview_url = self.generate_filtered_product_overview(
    chosen_menu_item_url)

However, when I then attempt to print or otherwise use the result of said function, the variable is empty and typed None.

Everything works correctly when I change it to this:

product_overview_url = self.generate_filtered_product_overview(chosen_menu_item_url)

In pure python, this works as expected: splitting the line after opening brackets is no problem. It would seem that locust does something strange here?

@heyman
Copy link
Member

heyman commented Nov 30, 2016

That sounds really strange. I'm not able to reproduce it. Could you give a minimal example of a locustfile.py that reproduces it?

@cgoldberg
Copy link
Member

will re-open if additional details are provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants