summaryrefslogtreecommitdiffstats
path: root/test/Deprecated/Options/chdir.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/Deprecated/Options/chdir.py')
-rw-r--r--test/Deprecated/Options/chdir.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/Deprecated/Options/chdir.py b/test/Deprecated/Options/chdir.py
index 7ba85ea..dd4eb70 100644
--- a/test/Deprecated/Options/chdir.py
+++ b/test/Deprecated/Options/chdir.py
@@ -31,7 +31,7 @@ file lives by using the __name__ value.
import TestSCons
-test = TestSCons.TestSCons()
+test = TestSCons.TestSCons(match = TestSCons.match_re_dotall)
test.subdir('bin', 'subdir')
@@ -66,6 +66,10 @@ expect = """\
VARIABLE = 'opts2.cfg value'
"""
-test.run(arguments = '-q -Q .', stdout=expect)
+warnings = """
+scons: warning: The Options class is deprecated; use the Variables class instead.
+""" + TestSCons.file_expr
+
+test.run(arguments = '-q -Q .', stdout=expect, stderr=warnings)
test.pass_test()