Add python version deprecated check to get this test to pass on python 2.3 (hopefully...
authorbdbaddog <bdbaddog@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 12 Sep 2009 04:57:46 +0000 (04:57 +0000)
committerbdbaddog <bdbaddog@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 12 Sep 2009 04:57:46 +0000 (04:57 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4356 fdb21ef1-2011-0410-befe-b5e4ea1792b1

test/option/debug-memoizer.py

index f8e4cc3d3b5de7a125ac0674ecb76c6f2a9555af..5ad4bcf56c9ff88ffaeb6d53f048112df90f10e6 100644 (file)
@@ -81,8 +81,8 @@ expect = [
 
 if use_metaclass:
 
-    def run_and_check(test, args, desc):
-        test.run(arguments = args)
+    def run_and_check(test, args, desc,stderr=None):
+        test.run(arguments = args,stderr=".*"+TestSCons.deprecated_python_expr)
         test.must_contain_any_line(test.stdout(), expect)
 
 else:
@@ -94,7 +94,7 @@ scons: warning: memoization is not supported in this version of Python \\(%s\\)
     expect_no_metaclasses = expect_no_metaclasses + TestSCons.file_expr
 
     def run_and_check(test, args, desc):
-        test.run(arguments = args, stderr = expect_no_metaclasses)
+        test.run(arguments = args, stderr = expect_no_metaclasses+".*"+TestSCons.deprecated_python_expr)
         test.must_not_contain_any_line(test.stdout(), expect)