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

Already on GitHub? Sign in to your account

Exception in case of an import problem is not helpful #299

Merged
merged 3 commits into from Nov 19, 2012

Conversation

Projects
None yet
2 participants
Contributor

akaihola commented Nov 16, 2012

If there's an import problem in the code which is being tested, the exception is not very helpful:

$ ./manage.py harvest
Creating test database for alias 'default'...
Destroying old test database 'default'...
Django's builtin server is running at 0.0.0.0:8000
Traceback (most recent call last):
  File "lettuce/django/management/commands/harvest.py", line 134, in handle
    result = runner.run()
  File "lettuce/__init__.py", line 131, in run
    self.loader.find_and_load_step_definitions()
  File "lettuce/fs.py", line 49, in find_and_load_step_definitions
    raise e
ValueError: Attempted relative import in non-package
Destroying test database for alias 'default'...

gabrielfalcao added a commit that referenced this pull request Nov 19, 2012

Merge pull request #299 from akaihola/299-import-exception
Exception in case of an import problem is not helpful

@gabrielfalcao gabrielfalcao merged commit 58bcd09 into gabrielfalcao:master Nov 19, 2012

1 check passed

default The Travis build passed
Details

gabrielfalcao added a commit that referenced this pull request Nov 28, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment