python - Django Nose Tests Failing - Traceback from Nose Code -
i unable run django nose tests, processes fail traceback:
traceback (most recent call last): file "/system/library/frameworks/python.framework/versions/2.7/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap self.run() file "/system/library/frameworks/python.framework/versions/2.7/lib/python2.7/multiprocessing/process.py", line 114, in run self._target(*self._args, **self._kwargs) file "/users/jeffquinn/code/nuna/data-intrawebve/lib/python2.7/site-packages/nose/plugins/multiprocess.py", line 652, in runner keyboardcaught, shouldstop, loaderclass, resultclass, config) file "/users/jeffquinn/code/nuna/data-intrawebve/lib/python2.7/site-packages/nose/plugins/multiprocess.py", line 669, in __runner config.plugins.begin() file "/users/jeffquinn/code/nuna/data-intrawebve/lib/python2.7/site-packages/nose/plugins/manager.py", line 99, in __call__ return self.call(*arg, **kw) file "/users/jeffquinn/code/nuna/data-intrawebve/lib/python2.7/site-packages/nose/plugins/manager.py", line 167, in simple result = meth(*arg, **kw) file "/users/jeffquinn/code/nuna/data-intrawebve/lib/python2.7/site-packages/nose/plugins/cover.py", line 156, in begin self.coverinstance.exclude('#pragma[: ]+[nn][oo] [cc][oo][vv][ee][rr]') attributeerror: 'nonetype' object has no attribute 'exclude'
here relevant bits pip freeze
:
django==1.5.1 mysql-python==1.2.5 south==0.7.6 werkzeug==0.8.3 boto==2.8.0 dj-database-url==0.2.1 django-appconf==0.6 django-compressor==1.2 django-extensions==1.0.3 django-json-field==0.5.5 django-nose==1.1 django-storages==1.1.6 django-waffle==0.9.0 djangorestframework==2.1.17 nose==1.3.1
anyone else seen this? i've seen mentioned in pull request (https://github.com/nose-devs/nose/pull/710) not clear solution was.
i went nose source code , commented out lines 156-158.
#self.coverinstance.exclude('#pragma[: ]+[nn][oo] [cc][oo][vv][ee][rr]') #self.coverinstance.load() #self.coverinstance.start()
all tests run fine now. o_o
Comments
Post a Comment