diff options
Diffstat (limited to 'test/packaging/convenience-functions.py')
-rw-r--r-- | test/packaging/convenience-functions.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/packaging/convenience-functions.py b/test/packaging/convenience-functions.py index 9554383..66374e3 100644 --- a/test/packaging/convenience-functions.py +++ b/test/packaging/convenience-functions.py @@ -29,7 +29,6 @@ Test the FindInstalledFiles() and the FindSourceFiles() functions. """ import os.path -import string import TestSCons python = TestSCons.python @@ -44,8 +43,8 @@ env = Environment(tools=['default', 'packaging']) prog = env.Install( 'bin/', ["f1", "f2"] ) env.File( "f3" ) -src_files = map(str, env.FindSourceFiles()) -oth_files = map(str, env.FindInstalledFiles()) +src_files = list(map(str, env.FindSourceFiles())) +oth_files = list(map(str, env.FindInstalledFiles())) src_files.sort() oth_files.sort() @@ -56,8 +55,8 @@ print oth_files bin_f1 = os.path.join('bin', 'f1') bin_f2 = os.path.join('bin', 'f2') -bin__f1 = string.replace(bin_f1, '\\', '\\\\') -bin__f2 = string.replace(bin_f2, '\\', '\\\\') +bin__f1 = bin_f1.replace('\\', '\\\\') +bin__f2 = bin_f2.replace('\\', '\\\\') expect_read = """\ ['SConstruct', 'f1', 'f2', 'f3'] |