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

step through locust source #322

Closed
ghost opened this issue Aug 17, 2015 · 1 comment
Closed

step through locust source #322

ghost opened this issue Aug 17, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 17, 2015

Hi,

I am trying to step through the Locust source whilst running a test in order to understand the architecture. I am guessing the best way do this is to clone the source and run pdb against main.py.

$ locust python -m pdb locust/main.py

However, an exception is thrown on a directory import

from . import runners
ValueError: Attempted relative import in non-package

But there is a __init__.py there.

I wondered if I am taking the right approach and if so how can I overcome my import problem?

@justiniso
Copy link
Member

Hey @aidylewis if this is still an issue for you, please include the full stacktrace. Feel free to reopen the issue.

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

1 participant