nose-devs/nose — Issue #362: IronPython 2.6 now seems to supports sys.exc_info() without change - suite.py imports a now unknown, and unneeded, StringException
Author: jpellerin
Created: 2011-12-14 16:09:09+00:00
State: open

What steps will reproduce the problem?
1. install IronPython
2. install nose.py directory in site-packages
3. import nose

What is the expected output? What do you see instead?

fails with
>>> import nose
....
File "C:\IronPython\lib\site-packages\nose\suite.py", line 23, in
C:\IronPytho
n\lib\site-packages\nose\suite.py
ImportError: Cannot import name StringException

What version of the product are you using? On what operating system?

nose 0.11.1 on Windows 7
C:> ipy
>>> import sys

>>> sys.version
'2.6.0 (IronPython 2.6 (2.6.10920.0) on .NET 2.0.50727.4927)'

Please provide any additional information below.

The following changes to existing suite.py wortk - shown here as ##.

line 23:
## from IronPython.Runtime.Exceptions import StringException

line 174 ff
def _exc_info(self):
"""Bottleneck to fix up IronPython string exceptions
"""
e = self.exc_info()
## if sys.platform == 'cli':
## if isinstance(e[0], StringException):
## # IronPython throws these StringExceptions, but
## # traceback checks type(etype) == str. Make a real
## # string here.
## e = (str(e[0]), e[1], e[2])

return e

Google Code Info:
Issue #: 316
Author: drtimcou...@gmail.com
Created On: 2010-01-31T12:15:30.000Z
Closed On: 2010-03-03T15:10:00.000Z