Py2 test fixes
authorStefan Behnel <scoder@users.berlios.de>
Sat, 17 Oct 2009 21:29:50 +0000 (23:29 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 17 Oct 2009 21:29:50 +0000 (23:29 +0200)
tests/run/funcexc_iter_T228.pyx
tests/run/funcexceptraise.pyx

index b3355b42c11e254b69db76db2c5dc47fcd62a6a1..0fa6563e48d9b027e09b2d66a17f3e174ef07699 100644 (file)
@@ -45,6 +45,8 @@ True
 """
 
 import sys
+if sys.version_info[0] < 3:
+    sys.exc_clear()
 
 cdef class cy_iterator(object):
     def __iter__(self):
index 900eee04a13dd4718363bbacfba7ac92dfb963ed..669022fca78b433ab02744452f250849e576f7c6 100644 (file)
@@ -11,6 +11,8 @@ __doc__ = u"""
 """
 
 import sys
+if sys.version_info[0] < 3:
+    sys.exc_clear()
 
 def foo():
     try: