Skip to content

Commit a6e4570

Browse files
Update packages/google-cloud-storage/tests/unit/test_client.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 75b6d2a commit a6e4570

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/google-cloud-storage/tests/unit/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def test_ctor_wo_project(self):
300300
PROJECT = "PROJECT"
301301
credentials = _make_credentials(project=PROJECT)
302302

303-
with mock.patch("os.environ", {}):
303+
with mock.patch.dict("os.environ", {}, clear=True):
304304
client = self._make_one(credentials=credentials)
305305

306306
self.assertEqual(client.project, PROJECT)

0 commit comments

Comments
 (0)