#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)

hollow_cylinder_new.py (5.0 KB) - added by richardh 12 months ago.
hollow_cylinder_new.c (3.5 KB) - added by richardh 12 months ago.

Download all attachments as: .zip

Change History (3)

Changed 12 months ago by richardh

Changed 12 months ago by richardh

comment:1 Changed 11 months ago by pkienzle

  • Resolution set to duplicate
  • Status changed from new to closed

See #706

Note: See TracTickets for help on using tickets.