diff options
Diffstat (limited to 'test/Repository/RMIC.py')
-rw-r--r-- | test/Repository/RMIC.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/Repository/RMIC.py b/test/Repository/RMIC.py index e00bb43..b214b4b 100644 --- a/test/Repository/RMIC.py +++ b/test/Repository/RMIC.py @@ -60,13 +60,12 @@ opts = '-Y ' + test.workpath('rep1') # test.write(['rep1', 'SConstruct'], """ -import string env = Environment(tools = ['javac', 'rmic'], JAVAC = r'%s', RMIC = r'%s') classes = env.Java(target = 'classes', source = 'src') # Brute-force removal of the "Hello" class. -classes = filter(lambda c: string.find(str(c), 'Hello') == -1, classes) +classes = [c for c in classes if str(c).find('Hello') == -1] env.RMIC(target = 'outdir', source = classes) """ % (javac, rmic)) @@ -329,13 +328,12 @@ test.up_to_date(chdir = 'work2', options = opts, arguments = ".") # test.write(['work3', 'SConstruct'], """ -import string env = Environment(tools = ['javac', 'rmic'], JAVAC = r'%s', RMIC = r'%s') classes = env.Java(target = 'classes', source = 'src') # Brute-force removal of the "Hello" class. -classes = filter(lambda c: string.find(str(c), 'Hello') == -1, classes) +classes = [c for c in classes if str(c).find('Hello') == -1] rmi_classes = env.RMIC(target = 'outdir', source = classes) Local(rmi_classes) """ % (javac, rmic)) |