nose-devs / nose

nose is nicer testing for python
http://readthedocs.org/docs/nose/en/latest/
1.36k stars 396 forks source link

Nose importing module it shouldn't #985

Open jakirkham opened 8 years ago

jakirkham commented 8 years ago

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?

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.