nose-devs/nose — Issue #157: Boolean options for `python setup.py nosetests` raise TypeError
Author: jpellerin
Created: 2011-12-14 16:02:09+00:00
State: closed

Pb describes in the old Trac issues #120 and #113.

When given a boolean option (for examples: `python setup.py
nosetests -V`), its value is the integer 1 when nose expects the
string '1'.

A simple fix is, into `command.py`, to change the line

self.__config.cfgToArg(option_name, value, lambda o:
o.replace('_', '-')))

by

self.__config.cfgToArg(option_name, str(value), lambda o:
o.replace('_', '-')))

Google Code Info:
Issue #: 125
Author: alain.po...@gmail.com
Created On: 2007-10-24T17:49:33.000Z
Closed On: 2007-10-30T19:29:52.000Z