Browse Source

use dict() instead of deepcopy()

suggested by Jelmer
Stefan Sperling 9 months ago
parent
commit
2647c582be
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/compat/test_client.py

+ 1 - 1
tests/compat/test_client.py

@@ -434,7 +434,7 @@ class TestSSHVendor:
         cmd, path = command.split(" ")
         cmd = cmd.split("-", 1)
         path = path.replace("'", "")
-        env = copy.deepcopy(os.environ)
+        env = dict(os.environ)
         if protocol_version is None or protocol_version == 2:
             env["GIT_PROTOCOL"] = "version=2"