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

"ValueError: No JSON object could be decoded" on 'Run all' an empty test list #36

Open
psam44 opened this issue Jun 29, 2014 · 1 comment

Comments

@psam44
Copy link

psam44 commented Jun 29, 2014

Sure, not very useful to 'Run all' an empty test tree :) but ....
Just because on command line I'm used to run manage.py test myapp
and it's not so explicit in the Django doc that I have to create myself a project/tests.py containing from myapp.tests import *.

cricket-django.exe

Exception in Tkinter callback
Traceback (most recent call last):
  File "D:\Python27\lib\lib-tk\Tkinter.py", line 1486, in __call__
    return self.func(*args)
  File "D:\Python27\lib\lib-tk\Tkinter.py", line 533, in callit
    func(*args)
  File "D:\Python27\lib\site-packages\cricket-0.2.4.dev-py2.7.egg\cricket\view.py", line 784, in on_testProgress
    if self.executor and self.executor.poll():
  File "D:\Python27\lib\site-packages\cricket-0.2.4.dev-py2.7.egg\cricket\executor.py", line 225, in poll
    pre = json.loads(line)
  File "D:\Python27\lib\json\__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "D:\Python27\lib\json\decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "D:\Python27\lib\json\decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
@freakboy3742
Copy link
Member

Thanks for the report. Agreed that this shouldn't happen; should be a relatively easy fix.

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

2 participants