I've got a problem with running unittest's in "All tests in folder" mode (using Python 3.1.2).
F.e. i have only one file called "test_something.py" in "tests" subfolder of my project:
__author__ = 'iam'
if __name__ == '__main__':
Test runs well when i set Python 2.7 interpreter in configuration, but when i set Python 3.1 i get the following:
No tests were found.
C:/Python31/python.exe "C:\Program Files (x86)\JetBrains\PyCharm 1.0\helpers\pycharm\utrunner.py" C:/Users/me/PycharmProjects/MyProj/tests/
Testing started at 10:19 ...
Traceback (most recent call last):
File "C:\Program Files (x86)\JetBrains\PyCharm 1.0\helpers\pycharm\utrunner.py", line 58, in <module>
modules = loadModulesFromFolderRec(a)
File "C:\Program Files (x86)\JetBrains\PyCharm 1.0\helpers\pycharm\utrunner.py", line 42, in loadModulesFromFolderRec
os.path.walk(folder, walkModules, modules)
AttributeError: 'module' object has no attribute 'walk'
Process finished with exit code 1
Empty test suite.
Is it PyCharm bug or i do something wrong way?