e-s*_*tis 7 python permissions doctest nose
今天我在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,我甚至无法编辑我的文件!
cod*_*ape 11
试试--exe
旗帜:
$ nosetests --help
...
--exe Look for tests in python modules that are executable.
Normal behavior is to exclude executable modules,
since they may not be import-safe [NOSE_INCLUDE_EXE]
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
866 次 |
最近记录: |