When I run randomunittest.py in IDLE, I get back the following in the Python Shell:

 

Type "copyright", "credits" or "license()" for more information.

 

    ****************************************************************

    Personal firewall software may warn about the connection IDLE

    makes to its subprocess using this computer's internal loopback

    interface.  This connection is not visible on any external

    interface and no data is sent to or received from the Internet.

    ****************************************************************

   

IDLE 1.2.2      ==== No Subprocess ====

>>>

Traceback (most recent call last):

  File "C:\Projects\Python\randomunittest.py", line 25, in <module>

    unittest.main()

  File "C:\Python25\lib\unittest.py", line 768, in __init__

    self.runTests()

  File "C:\Python25\lib\unittest.py", line 805, in runTests

    result = self.testRunner.run(self.test)

  File "C:\Python25\lib\unittest.py", line 705, in run

    test(result)

  File "C:\Python25\lib\unittest.py", line 437, in __call__

    return self.run(*args, **kwds)

  File "C:\Python25\lib\unittest.py", line 433, in run

    test(result)

  File "C:\Python25\lib\unittest.py", line 437, in __call__

    return self.run(*args, **kwds)

  File "C:\Python25\lib\unittest.py", line 433, in run

    test(result)

  File "C:\Python25\lib\unittest.py", line 281, in __call__

    return self.run(*args, **kwds)

  File "C:\Python25\lib\unittest.py", line 276, in run

    if ok: result.addSuccess(self)

  File "C:\Python25\lib\unittest.py", line 657, in addSuccess

    self.stream.write('.')

  File "C:\Python25\lib\idlelib\PyShell.py", line 1248, in write

    self.shell.write(s, self.tags)

  File "C:\Python25\lib\idlelib\PyShell.py", line 1237, in write

    raise KeyboardInterrupt

KeyboardInterrupt

>>> 

 

 

 

 

> -----Original Message-----

> From: Georg Brandl [mailto:report@bugs.python.org]

> Sent: Sunday, May 11, 2008 2:57 PM

> To: Getchell, Adam

> Subject: [issue2821] unittest.py sys.exit error

>

>

> Georg Brandl <georg@python.org> added the comment:

>

> Can you elaborate how you get the printed exception? When running your

> code as a script under 2.5 or trunk, I don't get such a message.

>

> ----------

> nosy: +georg.brandl

>

> __________________________________

> Tracker <report@bugs.python.org>

> <http://bugs.python.org/issue2821>

> __________________________________