@@ -173,7 +173,7 @@ def test_deprecate_method(self):
173173 )
174174 os .chdir (cwd )
175175
176- @mock .patch ( " java. CURRENT_YEAR" , TEST_CURRENT_YEAR )
176+ @mock .patch . object ( java , ' CURRENT_YEAR' , 2025 )
177177 def test_fix_proto_license (self ):
178178 with tempfile .TemporaryDirectory () as tempdir :
179179 cwd = os .getcwd ()
@@ -190,7 +190,7 @@ def test_fix_proto_license(self):
190190 )
191191 os .chdir (cwd )
192192
193- @mock .patch ( " java. CURRENT_YEAR" , TEST_CURRENT_YEAR )
193+ @mock .patch . object ( java , " CURRENT_YEAR" , 2025 )
194194 def test_fix_proto_license_idempotent (self ):
195195 with tempfile .TemporaryDirectory () as tempdir :
196196 cwd = os .getcwd ()
@@ -209,7 +209,7 @@ def test_fix_proto_license_idempotent(self):
209209 )
210210 os .chdir (cwd )
211211
212- @mock .patch ( " java. CURRENT_YEAR" , TEST_CURRENT_YEAR )
212+ @mock .patch . object ( java , " CURRENT_YEAR" , 2025 )
213213 def test_fix_grpc_license (self ):
214214 with tempfile .TemporaryDirectory () as tempdir :
215215 cwd = os .getcwd ()
@@ -226,7 +226,7 @@ def test_fix_grpc_license(self):
226226 )
227227 os .chdir (cwd )
228228
229- @mock .patch ( " java. CURRENT_YEAR" , TEST_CURRENT_YEAR )
229+ @mock .patch . object ( java , " CURRENT_YEAR" , 2025 )
230230 def test_fix_grpc_license_idempotent (self ):
231231 with tempfile .TemporaryDirectory () as tempdir :
232232 cwd = os .getcwd ()
0 commit comments