Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Improve QuadraticProgram unit test file access #991

Closed
woodsp-ibm opened this issue May 15, 2020 · 0 comments · Fixed by #993
Closed

Improve QuadraticProgram unit test file access #991

woodsp-ibm opened this issue May 15, 2020 · 0 comments · Fixed by #993

Comments

@woodsp-ibm
Copy link
Member

For the QuadraticProgram test it fails for me when I run it PyCharm because of the way the .lp files are accessed where it says test/optim.... etc as path name it assumes the current working folder which may be fine when done from command line. Check out test_driver_hdf5 (chemistry) where it uses get_resource_path to help locate the file relative to the test class. This way, as long as the relative path between the test file and resource stays the same it does not matter what the current working folder is.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant