From 67a955e55c907bcd5b37710be2ae1fbf022b0ece Mon Sep 17 00:00:00 2001 From: anatoly techtonik Date: Tue, 25 Feb 2014 08:27:16 +0300 Subject: Make test/Interactive/version.py independent of specific copyright years --- test/Interactive/version.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/test/Interactive/version.py b/test/Interactive/version.py index bbca9ef..96ce51e 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>>> -- cgit v0.12