-
-
Notifications
You must be signed in to change notification settings - Fork 153
Stop importing test suite from __init__ #85
Conversation
|
This makes sense to me but I'm worried we're breaking GPU and we have no tests for this. Do you know which config gets set? |
I don't know. Also there are 180 files in the Do we know if GPU works? Also, I can move the |
- The 6-year old comment indicated that the import was done because of some GPU configuration, without providing any details - The import actually imported the first thing called "tests" that is found in the PATH
|
The The next consideration would be for imports like I did find some some broken imports from a non-existent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After going through all the possible tests imports in the project, it looks like there was one dependency between tests and theano.gpuarray.opt. It involved the PdbBreakpoint Op (previously) defined in tests.breakpoint.
Oddly, that requirement was directly imported from tests and—as a result—didn't involve the theano.tests import in question, unless you view the theano.tests import as an initial check for the availability of the tests module. Given the old organization of the project, such a check wouldn't surprise me, so I'm assuming that was the only meaningful connection left.
My understanding of best practice is that the tests should live either in their own folder outside of the actual package (that's the case now) or as a submodule that is not imported from the actual package modules.
The
import testsline conflicts with both of the above.If just removing the import doesn't work because they are too entangled, we should move the tests into a submodule?
closes #84