You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I mounted a windows partition or windows folder in Arch Linux.
Then I moved my project into the windows folder.
I ran the script nosetests, and it showed that Ran 0 tests, namely nose couldn't find any unit-test.
However, it works when nosetests a specific python script.
And nosetests will find all unit-test if I move my project into Linux Partition.
So, I made these tests.
Move other project(like: librosa) into the windows folder then ran nosetests.
Mount the windows folder in the linux which is in physics machine via ntfs-3g, then nosetests the project in the windows folder.
Mount the windows folder in the linux which is in VMware Workstation via shared folder, then nosetests the project in the windows folder.
The results are all that nosetests shows Ran 0 tests.
I think the reason may be that the user permission is different between windows folder and linux folder.
I found the reason is that the user permission of an unit-test file is different on different OS.
The function def is_executable(file) in nose/utils.py wrongly recognizes an unit-test file on Windows Partition as an executable file.
Hi, there.
I mounted a windows partition or windows folder in Arch Linux.
Then I moved my project into the windows folder.
I ran the script
nosetests
, and it showed thatRan 0 tests
, namely nose couldn't find any unit-test.However, it works when nosetests a specific python script.
And nosetests will find all unit-test if I move my project into Linux Partition.
So, I made these tests.
nosetests
.ntfs-3g
, thennosetests
the project in the windows folder.nosetests
the project in the windows folder.The results are all that
nosetests
showsRan 0 tests
.I think the reason may be that the user permission is different between windows folder and linux folder.
I found the reason is that the user permission of an unit-test file is different on different OS.
The function
def is_executable(file)
innose/utils.py
wrongly recognizes an unit-test file on Windows Partition as an executable file.For a unit-test file, the permissions are below:
Notice that the last nine bits all are 1s on the mounted Windows Partition.
The text was updated successfully, but these errors were encountered: