nose-devs/nose — Issue #205: Exception if argv is empty
Author: jpellerin
Created: 2011-12-14 16:03:39+00:00
State: open

buildutils uses nose for testing, but the following exception occurs when
running the tests:

Traceback (most recent call last):
File "setup.py", line 93, in ?
entry_points="""
File "/usr/lib/python2.4/distutils/core.py", line 149, in setup
dist.run_commands()
File "/usr/lib/python2.4/distutils/dist.py", line 946, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command
cmd_obj.run()
File "/usr/lib/python2.4/site-packages/nose/commands.py", line 112, in run
TestProgram(argv=argv, config=self.__config)
File "/usr/lib/python2.4/site-packages/nose/core.py", line 160, in __init__
argv=argv, testRunner=testRunner, testLoader=testLoader)
File "/usr/lib/python2.4/unittest.py", line 757, in __init__
self.progName = os.path.basename(argv[0])
IndexError: list index out of range

================================================
The problem is either in unittest.py or in nose calling
unittest.TestProgram. unittest assumes that argv is None if empty but noses
passes an empty array instead.

Google Code Info:
Issue #: 73
Author: tiziano....@gmail.com
Created On: 2007-07-31T08:38:05.000Z
Closed On: 2007-07-31T14:53:08.000Z