Opened 8 years ago
Closed 8 years ago
#748 closed defect (duplicate)
plug-in model unit tests from python shell not always working?
Reported by: | richardh | Owned by: | pkienzle |
---|---|---|---|
Priority: | minor | Milestone: | SasView 4.1.0 |
Component: | SasView | Keywords: | |
Cc: | Work Package: | SasView Bug Fixing |
Description
from sasmodels.model_test import run_one
run_one("~/.sasview/plugin_models/hollow_cylinder_new.py")
got this to work on a simple only .py model, but but my hollow_cylinder_new.py failed with an "index out of range", see below. The identical code passed tests ok from cmd window with
python -m sasmodels.model_test hollow_cylinder_new
from sasmodels.model_test import run_one
run_one("~/.sasview/plugin_models/hollow_cylinder_new.py")
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:\stfc\sasview4\sasmodels\sasmodels\model_test.py", line 293, in run_one
if not suite._tests[0].info.tests:
IndexError?: list index out of range
Attachments (2)
Change History (3)
Changed 8 years ago by richardh
Changed 8 years ago by richardh
comment:1 Changed 8 years ago by pkienzle
- Resolution set to duplicate
- Status changed from new to closed
See #706