]> git.scottworley.com Git - git-cache/blobdiff - test_git_cache.py
Support old mypy: Explicit bytes cast
[git-cache] / test_git_cache.py
index 7408cad13e340992c21f95b612f971bc77dbb0c0..a7ee9958fdea0b5ad0b3b5fe25770d97c1b071b4 100644 (file)
@@ -10,7 +10,7 @@ import git_cache
 def _git(directory: str, *args: str) -> bytes:
     p = subprocess.run(['git', '-C', directory] + list(args),
                        stdout=subprocess.PIPE, check=True)
-    return p.stdout
+    return bytes(p.stdout)
 
 
 def _commit_file(