From: jai <mj...@sr...> - 2004-02-03 09:36:54
|
Hi All Please look at the follwing code. import unittest import string class file2(unittest.TestCase): def testNorml(self): text = open("c:\\abc.jsp").read() a= string.count(text, '<input type="button" class="cmdbutton" value="Search" name="B" onClick="SearchDeviceList()";>') self.assertEqual((a), 1) if __name__=='__main__': unittest.main() i'm getting the result properly.But with that result i'm getting a message like this. Firing event 'ProcessEnter' failed. Traceback (most recent call last): File "C:\Python23\lib\site-packages\Pythonwin\pywin\scintilla\bindings.py", line 141, in fire rc = apply(binding.handler, args) File "C:\Python23\lib\site-packages\Pythonwin\pywin\framework\interact.py", line 471, in ProcessEnterEvent if self.interp.runsource(source, "<interactive input>"): # Need more input! File "C:\Python23\lib\code.py", line 87, in runsource self.runcode(code) File "C:\Python23\lib\site-packages\Pythonwin\pywin\framework\interact.py", line 257, in runcode exec code in self.globals, self.locals File "<interactive input>", line 1, in ? File "file2.py", line 19, in ? File "C:\Python23\lib\unittest.py", line 711, in __init__ self.runTests() File "C:\Python23\lib\unittest.py", line 749, in runTests sys.exit(not result.wasSuccessful()) SystemExit: False I'm not able to understand this message. Thanks M.Jai SRA Systems,Chennai,India. |