I have a module that I intentionally do not import for some tests as its dependencies are not met. However, nose appears to be importing this anyways. Is there any way that I can configure nose not to do this (preferably with a config file) and/or can a change be made to nose to stop this from happening?
At present, I have configured this file as an ignored file, but I do find it weird that it is importing a non-test file. Note this only happens on Python 3 and not on Python 2.
I have a module that I intentionally do not import for some tests as its dependencies are not met. However,
nose
appears to be importing this anyways. Is there any way that I can configurenose
not to do this (preferably with a config file) and/or can a change be made tonose
to stop this from happening?Here is an example of the error and the module
nose
is trying to import. ( https://travis-ci.org/nanshe-org/nanshe/jobs/113023359#L2181 )At present, I have configured this file as an ignored file, but I do find it weird that it is importing a non-test file. Note this only happens on Python 3 and not on Python 2.