Update of /cvsroot/pywin32/pywin32/com/win32com/test
In directory vz-cvs-2.sog:/tmp/cvs-serv1991
Modified Files:
testROT.py
Log Message:
ignore errors if a moniker doesn't support enumeration
Index: testROT.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/test/testROT.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** testROT.py 4 May 2004 07:00:22 -0000 1.3
--- testROT.py 25 Feb 2011 05:46:21 -0000 1.4
***************
*** 2,5 ****
--- 2,6 ----
import unittest
import win32com.test.util
+ import winerror
class TestROT(win32com.test.util.TestCase):
***************
*** 11,17 ****
name = mk.GetDisplayName(ctx, None)
num += 1
! # Monikers themselves can iterate their contents
! for sub in mk:
! num += 1
#if num < 2:
--- 12,22 ----
name = mk.GetDisplayName(ctx, None)
num += 1
! # Monikers themselves can iterate their contents (sometimes :)
! try:
! for sub in mk:
! num += 1
! except pythoncom.com_error, exc:
! if exc.hresult != winerror.E_NOTIMPL:
! raise
#if num < 2:
|