Skip to content

Commit 6b52345

Browse files
committed
Move import statement to the beginning of the file
1 parent 439d3c4 commit 6b52345

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/pytests/unit/utils/test_gitfs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import importlib
12
import os
23
import time
34

@@ -264,8 +265,6 @@ def test_checkout_pygit2_with_home_env_unset(_prepare_provider):
264265
provider.credentials = None
265266
with patched_environ(__cleanup__=["HOME"]):
266267
assert "HOME" not in os.environ
267-
import importlib
268-
269268
importlib.reload(salt.utils.gitfs)
270269
assert "HOME" in os.environ
271270

0 commit comments

Comments
 (0)