summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranatoly techtonik <techtonik@gmail.com>2014-02-25 08:27:16 +0300
committeranatoly techtonik <techtonik@gmail.com>2014-02-25 08:27:16 +0300
commit6f108b32da10ac346135472b553f48d2ef399d56 (patch)
tree009f383cf73a63cb29cdac37a99a7ff141f3ec16
parentbc108eeeaea451f19852724ea8f8f2820bc71d50 (diff)
downloadscons-6f108b32da10ac346135472b553f48d2ef399d56.tar.gz
Make test/Interactive/version.py independent of specific copyright years
-rw-r--r--test/Interactive/version.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/Interactive/version.py b/test/Interactive/version.py
index bbca9efc..96ce51ed 100644
--- a/test/Interactive/version.py
+++ b/test/Interactive/version.py
@@ -36,15 +36,11 @@ 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)
+"""
expect1 = """\
scons>>>