summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranatoly techtonik <techtonik@gmail.com>2014-02-25 08:13:41 +0300
committeranatoly techtonik <techtonik@gmail.com>2014-02-25 08:13:41 +0300
commitbc108eeeaea451f19852724ea8f8f2820bc71d50 (patch)
tree34d22aad880402133b7888ba382ebf4ee1c6fb05
parentaffc7856ef2eace125752d648e554d015b488b67 (diff)
downloadscons-bc108eeeaea451f19852724ea8f8f2820bc71d50.tar.gz
Make test/option-v.py independent onf specific copyright years.
-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 680f5417..f3eb61ce 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.