Running a unittest test using the netbeans debugger gives the error when reaching unittest.main:
unittest.main()
', ' File "/Applications/NetBeans/NetBeans 6.7 RC1.app/Contents/Resources/NetBeans/python1/jython-2.5/Lib/unittest.py", line 767, in __init__
self.parseArgs(argv)
', ' File "/Applications/NetBeans/NetBeans 6.7 RC1.app/Contents/Resources/NetBeans/python1/jython-2.5/Lib/unittest.py", line 794, in parseArgs
self.createTests()
', ' File "/Applications/NetBeans/NetBeans 6.7 RC1.app/Contents/Resources/NetBeans/python1/jython-2.5/Lib/unittest.py", line 794, in parseArgs
self.createTests()
', ' File "/Applications/NetBeans/NetBeans 6.7 RC1.app/Contents/Resources/NetBeans/python1/jython-2.5/Lib/unittest.py", line 799, in createTests
Debug session normal end
self.test = self.testLoader.loadTestsFromNames(self.testNames,
', ' File "/Applications/NetBeans/NetBeans 6.7 RC1.app/Contents/Resources/NetBeans/python1/jython-2.5/Lib/unittest.py", line 565, in loadTestsFromNames
suites = [self.loadTestsFromName(name, module) for name in names]
', ' File "/Applications/NetBeans/NetBeans 6.7 RC1.app/Contents/Resources/NetBeans/python1/jython-2.5/Lib/unittest.py", line 541, in loadTestsFromName
parent, obj = obj, getattr(obj, part)
', "AttributeError: 'module' object has no attribute 'null'
This post mentions the error: http://zhenliu.wordpress.com/2009/06/04/netbeans-6-5-python-unittest-error/ , but his suggestion doesn't correspond to an option in the nb 6.7 ui. Has anyone else encountered this/found a solution?