Changes between Initial Version and Version 1 of Ticket #1335, comment 2
- Timestamp:
- Sep 28, 2018, 1:58:44 PM (7 years ago)
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: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: 2 2 3 3 The solution is to rename the post-install tests to be files that start with 'cxtest' instead of 'test'.