-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unit tests exceptions in IPython are displayed in its kernel tab #1370
Comments
From pierre.raybaut on 2013-04-30T07:08:24Z I've just tested this on Windows 8 and results are the following:
|
From sylvain....@gmail.com on 2013-04-30T10:42:32Z Correct, I checked in windows XP and you are right. |
From ccordoba12 on 2013-04-30T11:06:00Z I think I know how to fix this one: a config option needs to be passed to the kernel so that stderr is displayed directly in the console. Summary: Unit tests exceptions in IPython are displayed in its kernel tab (was: Unit tests exceptions displayed in spyder internal console) |
From sylvain....@gmail.com on 2013-05-06T14:33:13Z Hi Carlos, Do you have a reference on how to pass such an option to a kernel? |
From ccordoba12 on 2013-06-19T18:13:26Z This issue was updated by revision e59398d1399e . Status: Fixed |
From ccordoba12 on 2015-02-15T16:14:34Z Labels: -Component-IPython |
From sylvain....@gmail.com on 2013-04-28T17:35:02Z
Hello,
When running unit tests in the ipython console, exceptions are displayed in spyder internal console. This is the case on all linux and windows and with all versions of spyders. (2.1 , 2.2rc, last hg version so far)
You can reproduce the problem with the following steps:
import unittest
class tests(unittest.TestCase):
if name == 'main':
unittest.main()
Cheers,
Sylvain
E
ERROR: test_raise (main.tests)
Traceback (most recent call last):
File "/home/sylvain/Desktop/DevCode/EclipseWorkspace/BLP/DE_optimizer.py", line 6, in test_raise
print 1 / 0
ZeroDivisionError: integer division or modulo by zero
Ran 1 test in 0.000s
FAILED (errors=1)
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1370
The text was updated successfully, but these errors were encountered: