[IMP] recent qunit will send moduleStart with no name if error happens outside of a testing module

bzr revid: xmo@openerp.com-20130807112159-91jdzgl6g2fk966t
This commit is contained in:
Xavier Morel 2013-08-07 13:21:59 +02:00
parent 11fb809e60
commit 82999df03c
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class QUnitSuite(unittest.TestSuite):
return True
elif event_name == 'qunit.moduleStart':
self._module = args[1].encode('utf-8')
self._module = args[1].encode('utf-8') if args[1] else ''
elif event_name == 'qunit.moduleStop':
self._test = None
self._module = None