Why does the nose find tests in files with a resolution of 644?

Today I spent a bunch of doctrines using Python 2.6 on Ubuntu 9.10 with a nose:

nosetests --with-doctest Ran 0 tests in 0.001s OK 

WTF? I had tests in these files, why didn't it work?

I changed the resolution to 644:

 sudo chmod 644 * -R nosetests --with-doctest Ran 11 test in 0.004s FAILED (errors=1) 

Change it to 777:

 sudo chmod 777 * -R nosetests --with-doctest Ran 0 tests in 0.001s OK 

Why? Using 644, I can’t even edit my files!

+7
python permissions doctest nose
source share
1 answer

Try the --exe flag:

 $ 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] 
+11
source share

All Articles