Python Nose Import Error

后端 未结 9 579
谎友^
谎友^ 2020-11-28 22:28

I can\'t seem to get the nose testing framework to recognize modules beneath my test script in the file structure. I\'ve set up the simplest example that demonstrates the p

9条回答
  •  再見小時候
    2020-11-28 23:00

    I just ran into one more thing that might cause this issue: naming of tests in the form testname.test.py. That extra . confounds nose and leads to it importing things it should not. I suppose it may be obvious that using unconventional test naming conventions will break things, but I thought it might be worth noting.

提交回复
热议问题