Update of /cvsroot/pywin32/pywin32/com/win32com/test
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv23408/com/win32com/test
Modified Files:
testExplorer.py testGatewayAddresses.py testPyComTest.py
testmakepy.py testvb.py
Log Message:
remove use of string module
Index: testvb.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/test/testvb.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** testvb.py 27 Nov 2008 09:33:22 -0000 1.23
--- testvb.py 4 Dec 2008 03:38:20 -0000 1.24
***************
*** 7,11 ****
import pythoncom, win32com.client, win32com.client.dynamic, win32com.client.gencache
from win32com.server.util import NewCollection, wrap
- import string
from win32com.test import util
--- 7,10 ----
***************
*** 242,246 ****
_DoTestArray(vbtest, (1.0, 2.0, 3.0))
# Strings.
! _DoTestArray(vbtest, tuple(string.split("Hello from Python")))
# Date and Time?
# COM objects.
--- 241,245 ----
_DoTestArray(vbtest, (1.0, 2.0, 3.0))
# Strings.
! _DoTestArray(vbtest, tuple("Hello from Python".split()))
# Date and Time?
# COM objects.
***************
*** 288,292 ****
# Therefore, Python sees _2_ result values - one for the result,
# and one for the byref.
! testData = string.split("Mark was here")
resultData, byRefParam = vbtest.PassSAFEARRAY(testData)
if testData != list(resultData):
--- 287,291 ----
# Therefore, Python sees _2_ result values - one for the result,
# and one for the byref.
! testData = "Mark was here".split()
resultData, byRefParam = vbtest.PassSAFEARRAY(testData)
if testData != list(resultData):
Index: testmakepy.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/test/testmakepy.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** testmakepy.py 27 Nov 2008 09:33:22 -0000 1.6
--- testmakepy.py 4 Dec 2008 03:38:20 -0000 1.7
***************
*** 6,10 ****
import glob
import os
- import string
import traceback
--- 6,9 ----
Index: testGatewayAddresses.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/test/testGatewayAddresses.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** testGatewayAddresses.py 27 Nov 2008 03:53:25 -0000 1.4
--- testGatewayAddresses.py 4 Dec 2008 03:38:20 -0000 1.5
***************
*** 37,41 ****
from win32com.server.util import wrap
import pythoncom
- import string
from util import CheckClean
--- 37,40 ----
***************
*** 44,49 ****
# Check that the 2 objects both have identical COM pointers.
def CheckSameCOMObject(ob1, ob2):
! addr1 = string.split(repr(ob1))[6][:-1]
! addr2 = string.split(repr(ob2))[6][:-1]
return addr1==addr2
--- 43,48 ----
# Check that the 2 objects both have identical COM pointers.
def CheckSameCOMObject(ob1, ob2):
! addr1 = repr(ob1).split()[6][:-1]
! addr2 = repr(ob2).split()[6][:-1]
return addr1==addr2
Index: testExplorer.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/test/testExplorer.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** testExplorer.py 26 Nov 2008 08:52:32 -0000 1.9
--- testExplorer.py 4 Dec 2008 03:38:20 -0000 1.10
***************
*** 1,5 ****
# testExplorer -
- import string
import sys
import os
--- 1,4 ----
Index: testPyComTest.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/test/testPyComTest.py,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -d -r1.39 -r1.40
*** testPyComTest.py 27 Nov 2008 09:33:22 -0000 1.39
--- testPyComTest.py 4 Dec 2008 03:38:20 -0000 1.40
***************
*** 41,46 ****
def TestApplyResult(fn, args, result):
try:
! import string
! fnName = string.split(str(fn))[1]
except:
fnName = str(fn)
--- 41,45 ----
def TestApplyResult(fn, args, result):
try:
! fnName = str(fn).split()[1]
except:
fnName = str(fn)
|