0

мой конфигурационный файл выглядит как этотпитон ошибка синтаксического анализа nosetest конфигурационный файл

# function class,dir, file match this regular expression are considered tests 
[NOSE_TESTMATCH] 
#by default this is- (?:^|[\b_\./-])[Tt]est 

# The file names after this block are ignored while testing 
[NOSE_IGNORE_FILES] 
test_case_1.py 
# the regex that match the specified regex(if any) are excluded from tests 
[NOSE_EXCLUDE] 
#eg: test_s* 

# the regex that match the specified regex(if any) are included from tests 
[NOSE_INCLUDE] 

#eg: test_s* 

, когда я бегу nosetests с опцией -c я получаю этот выход

[[email protected]_redhat test]$ nosetests -w cases/ -s -c examples/nose_test.config 
Usage: nosetests [options] 

**nosetests: error: Error reading config file 'examples/nose_test.config': File contains parsing errors: examples/nose_test.config 
     [line 7]: 'test_case_1.py\n'** 

ответ

0

Решение действительно тривиально.

в основном документация не очень хорошая.

его один блок носетистов и другие варианты в последующих строках. например

[nosetests]

игнорирующие-файлы = abc.py

Благодарности

0
>[nosetests] 
>ignore-files=<path of files> 
>exclude=<path of files> 
>include=<path of files> 

поможет

+0

Более подробно в вашем ответе будет полезно – dbmitch

Смежные вопросы