Changes between Initial Version and Version 1 of Ticket #1335, comment 2


Ignore:
Timestamp:
Sep 28, 2018, 1:58:44 PM (7 years ago)
Author:
Greg Couch

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1335, comment 2

    initial v1  
    1 Bundle builder uses setuptools to build wheels.  If the 'test' argument is given, then Python's unittest module is invoked.  unittest imports all 'test*.py' files and looks for tests in them.  Consequently, test.py was imported and failed because 'session' was not available.  That could have been fixed by placing the test in a function and calling it if __name__.startswith("ChimeraX_sandbox").  However:
     1Bundle builder uses setuptools to build wheels.  If the 'test' argument is given, then Python's unittest module is invoked.  unittest imports all 'test*.py' files and looks for tests in them.  Consequently, test.py was imported and failed because 'session' was not available.  That could have been fixed by placing the test in a function and calling it if !__name!__.startswith("ChimeraX_sandbox").  However:
    22
    33The solution is to rename the post-install tests to be files that start with 'cxtest' instead of 'test'.