今天我在Ubuntu 9.10上用鼻子运行了一堆使用Python 2.6的doctests:
nosetests --with-doctest
Ran 0 tests in 0.001s
OK
Run Code Online (Sandbox Code Playgroud)
WTF?我在那些文件中进行了测试,为什么没有这个工作呢?
我改为644的许可:
sudo chmod 644 * -R
nosetests --with-doctest
Ran 11 test in 0.004s
FAILED (errors=1)
Run Code Online (Sandbox Code Playgroud)
将其更改回777:
sudo chmod 777 * -R
nosetests --with-doctest
Ran 0 tests in 0.001s
OK
Run Code Online (Sandbox Code Playgroud)
这是为什么?使用644,我甚至无法编辑我的文件!