summaryrefslogtreecommitdiffstats
path: root/test/option-v.py
diff options
context:
space:
mode:
authoranatoly techtonik <techtonik@gmail.com>2014-02-25 05:13:41 (GMT)
committeranatoly techtonik <techtonik@gmail.com>2014-02-25 05:13:41 (GMT)
commitc5f2413c98c3ac4804c4430586d56ffa361414fd (patch)
tree34d22aad880402133b7888ba382ebf4ee1c6fb05 /test/option-v.py
parent393d48be670f8dcb42071836776812b29a184e0f (diff)
downloadSCons-c5f2413c98c3ac4804c4430586d56ffa361414fd.zip
SCons-c5f2413c98c3ac4804c4430586d56ffa361414fd.tar.gz
SCons-c5f2413c98c3ac4804c4430586d56ffa361414fd.tar.bz2
Make test/option-v.py independent onf specific copyright years.
Diffstat (limited to 'test/option-v.py')
-rw-r--r--test/option-v.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/option-v.py b/test/option-v.py
index 680f541..f3eb61c 100644
--- a/test/option-v.py
+++ b/test/option-v.py
@@ -31,13 +31,11 @@ test = TestSCons.TestSCons(match = TestCmd.match_re)
test.write('SConstruct', "")
-# Construct the standard copyright marker so it doesn't get replaced
+# Standard copyright marker is mangled so it doesn't get replaced
# by the packaging build.
-copyright_marker = '__' + 'COPYRIGHT' + '__'
-
-fmt = '(%s|Copyright \\(c\\) %s The SCons Foundation)\n'
-
-copyright_line = fmt % (copyright_marker, TestSCons.copyright_years)
+copyright_line = """\
+(_{2}COPYRIGHT__|Copyright \\(c\\) 2001[-\d, ]+ The SCons Foundation)
+"""
# Windows may or may not print a line for the script version
# depending on whether it's invoked through scons.py or scons.bat.