Commit a9358680 authored by Stefan Behnel's avatar Stefan Behnel

fix test case

parent cd81f278
...@@ -8,6 +8,18 @@ __doc__ = u""" ...@@ -8,6 +8,18 @@ __doc__ = u"""
>>> list(cy_iterator()) >>> list(cy_iterator())
[] []
>>> try:
... raise ValueError
... except:
... print(sys.exc_info()[0] is ValueError or sys.exc_info()[0])
... a = list(py_iterator())
... print(sys.exc_info()[0] is ValueError or sys.exc_info()[0])
True
True
>>> print(sys.exc_info()[0] is None or sys.exc_info()[0])
True
>>> try: >>> try:
... raise ValueError ... raise ValueError
... except: ... except:
...@@ -20,8 +32,7 @@ True ...@@ -20,8 +32,7 @@ True
True True
True True
>>> if IS_PY3: print(sys.exc_info()[0] is None or sys.exc_info()[0]) >>> print(sys.exc_info()[0] is None or sys.exc_info()[0])
... else: print(sys.exc_info()[0] is ValueError or sys.exc_info()[0])
True True
>>> double_raise(py_iterator) >>> double_raise(py_iterator)
...@@ -29,8 +40,7 @@ True ...@@ -29,8 +40,7 @@ True
True True
True True
>>> if IS_PY3: print(sys.exc_info()[0] is None or sys.exc_info()[0]) >>> print(sys.exc_info()[0] is None or sys.exc_info()[0])
... else: print(sys.exc_info()[0] is ValueError or sys.exc_info()[0])
True True
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment