1

设置测试框架,我似乎无法克服这个错误:

Traceback (most recent call last):
  File "/usr/local/bin/nosetests", line 8, in <module>
    load_entry_point('nose==1.1.2', 'console_scripts', 'nosetests')()
  File "/Library/Python/2.7/site-packages/nose-1.1.2-py2.7.egg/nose/core.py", line 118, in __init__
    **extra_args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/main.py", line 94, in __init__
    self.parseArgs(argv)
  File "/Library/Python/2.7/site-packages/nose-1.1.2-py2.7.egg/nose/core.py", line 135, in parseArgs
    self.config.configure(argv, doc=self.usage())
  File "/Library/Python/2.7/site-packages/nose-1.1.2-py2.7.egg/nose/config.py", line 338, in configure
    self.plugins.configure(options, self)
  File "/Library/Python/2.7/site-packages/nose-1.1.2-py2.7.egg/nose/plugins/manager.py", line 271, in configure
    cfg(options, config)
  File "/Library/Python/2.7/site-packages/nose-1.1.2-py2.7.egg/nose/plugins/manager.py", line 94, in __call__
    return self.call(*arg, **kw)
  File "/Library/Python/2.7/site-packages/nose-1.1.2-py2.7.egg/nose/plugins/manager.py", line 162, in simple
    result = meth(*arg, **kw)
  File "build/bdist.macosx-10.7-intel/egg/nosegae.py", line 80, in configure
  File "/usr/local/bin/dev_appserver.py", line 76, in <module>
    DIR_PATH = get_dir_path(os.path.join('lib', 'ipaddr'))
  File "/usr/local/bin/dev_appserver.py", line 66, in get_dir_path
    'file and %s.' % sibling)
ValueError: Could not determine directory that contains both, this file and lib/ipaddr.

这是一个正确的错误来自dev_appserver.py...目录中lib/ipaddr没有/usr/local/bin

为什么nosetests触发引发此错误?为什么要首先dev_appengine尝试寻找lib/ipaddr

4

0 回答 0