summaryrefslogtreecommitdiff
path: root/test/Value.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2010-05-20 05:03:44 +0000
committerSteven Knight <knight@baldmt.com>2010-05-20 05:03:44 +0000
commitf4d0f5a91828a1edd8bd1162b648592f8000d03a (patch)
tree5d37d9cbc3e7d2165c36cd0917cb6a2515adda1e /test/Value.py
parent9ecd62512d165b4a26c0fc5a4e64bda276f34155 (diff)
downloadscons-f4d0f5a91828a1edd8bd1162b648592f8000d03a.tar.gz
Convert old-style classes in test scripts to new-style classes.
Diffstat (limited to 'test/Value.py')
-rw-r--r--test/Value.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/Value.py b/test/Value.py
index 72a43fa9..06cce400 100644
--- a/test/Value.py
+++ b/test/Value.py
@@ -38,7 +38,7 @@ python = TestSCons.python
SConstruct_content = """
Decider(r'%(source_signature)s')
-class Custom:
+class Custom(object):
def __init__(self, value): self.value = value
def __str__(self): return "C=" + str(self.value)
@@ -93,10 +93,11 @@ for source_signature in ['MD5', 'timestamp-newer']:
out1 = """create(["f1.out"], ['/usr/local'])"""
out2 = """create(["f2.out"], [10])"""
- out3 = """create\\(\\["f3.out"\\], \\[<.*.Custom instance at """
+ out3 = """create\\(\\["f3.out"\\], \\[<.*.Custom (instance|object) at """
#" <- unconfuses emacs syntax highlighting
test.must_contain_all_lines(test.stdout(), [out1, out2, out7, out8])
+ print test.stdout()
test.fail_test(re.search(out3, test.stdout()) == None)
test.must_match('f1.out', "/usr/local")
@@ -110,7 +111,7 @@ for source_signature in ['MD5', 'timestamp-newer']:
test.run(arguments='prefix=/usr')
out4 = """create(["f1.out"], ['/usr'])"""
out5 = """create(["f2.out"], [4])"""
- out6 = """create\\(\\["f3.out"\\], \\[<.*.Custom instance at """
+ out6 = """create\\(\\["f3.out"\\], \\[<.*.Custom (instance|object) at """
#" <- unconfuses emacs syntax highlighting
test.must_contain_all_lines(test.stdout(), [out4, out5])
test.fail_test(re.search(out6, test.stdout()) == None)