Fix broken unit test in repohooks

BUG=None
TEST=./pre-upload_unittest.py

Change-Id: I9239507455cd12039a675bbdfee9ca92695200f7
Reviewed-on: https://cos-review.googlesource.com/c/cos/repohooks/+/15490
Reviewed-by: Robert Kolchmeyer <rkolchmeyer@google.com>
Tested-by: Dexter Rivera <riverade@google.com>
diff --git a/pre-upload_unittest.py b/pre-upload_unittest.py
index 968340e..0a10fa4 100755
--- a/pre-upload_unittest.py
+++ b/pre-upload_unittest.py
@@ -1150,8 +1150,9 @@
 
   def testHeaders(self):
     """Accept old header styles."""
+    year = datetime.datetime.now().year
     header = u"""#
-# Copyright 2020 Google LLC
+# Copyright {} Google LLC
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -1162,7 +1163,8 @@
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 # GNU General Public License for more details.
 #
-"""
+""".format(year)
+
     def fake_get_affected_files(_, relative, include_adds=True):
       _ = relative
       if include_adds: