Skip to content

Commit 23ad9b0

Browse files
committed
chore: fix python unit tests
1 parent 7c8cb3e commit 23ad9b0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

hermetic_build/library_generation/tests/owlbot/java_unit_tests.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def test_deprecate_method(self):
172172
)
173173
os.chdir(cwd)
174174

175-
@mock.patch.dict(java.CURRENT_YEAR, 2025)
175+
@mock.patch(java.CURRENT_YEAR, 2025)
176176
def test_fix_proto_license(self):
177177
with tempfile.TemporaryDirectory() as tempdir:
178178
cwd = os.getcwd()
@@ -189,7 +189,7 @@ def test_fix_proto_license(self):
189189
)
190190
os.chdir(cwd)
191191

192-
@mock.patch.dict(java.CURRENT_YEAR, 2025)
192+
@mock.patch(java.CURRENT_YEAR, 2025)
193193
def test_fix_proto_license_idempotent(self):
194194
with tempfile.TemporaryDirectory() as tempdir:
195195
cwd = os.getcwd()
@@ -208,7 +208,7 @@ def test_fix_proto_license_idempotent(self):
208208
)
209209
os.chdir(cwd)
210210

211-
@mock.patch.dict(java.CURRENT_YEAR, 2025)
211+
@mock.patch(java.CURRENT_YEAR, 2025)
212212
def test_fix_grpc_license(self):
213213
with tempfile.TemporaryDirectory() as tempdir:
214214
cwd = os.getcwd()
@@ -225,7 +225,7 @@ def test_fix_grpc_license(self):
225225
)
226226
os.chdir(cwd)
227227

228-
@mock.patch.dict(java.CURRENT_YEAR, 2025)
228+
@mock.patch(java.CURRENT_YEAR, 2025)
229229
def test_fix_grpc_license_idempotent(self):
230230
with tempfile.TemporaryDirectory() as tempdir:
231231
cwd = os.getcwd()

0 commit comments

Comments
 (0)