CSSE1001 / MyPyTutor

Interactive tutorial application for Python3.
Other
7 stars 12 forks source link

Fix inconsistent UI when code fails parsing #60

Closed sapi closed 9 years ago

sapi commented 9 years ago

When the student code fails parsing, and the associated exception has a line number, then testing does not occur.

This is on the basis that ast might fail to analyse the code successfully if there is such a fundamental compilation error.

It is implemented in _run_tests, in tests.py; the code raises a StudentCodeError.

One side-effect of this exception being raised is that there is no test data available. This means that the listbox isn't filled out. Not only might this be confusing, it means that if you click on the listbox you'll get an error.

Possible solutions: