coverage85-step2d: 新测试 lint 清理(删无用导入与变量)
This commit is contained in:
1 parent
1e9c1b36ee
commit
903f138fd9
4 files changed
+2
-5
No files matched your search
@@ -8,7 +8,6 @@ import io
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
import tarfile
|
||||
import tempfile
|
||||
import unittest
|
||||
from contextlib import redirect_stderr, redirect_stdout
|
||||
@@ -341,7 +340,7 @@ class DeployMainTest(unittest.TestCase):
|
||||
|
||||
def test_git_dry_run_via_main(self):
|
||||
with tempfile.TemporaryDirectory() as tmp:
|
||||
head = _make_git_repo(tmp)
|
||||
_make_git_repo(tmp)
|
||||
old_root = deploy_mod.REPO_ROOT
|
||||
deploy_mod.REPO_ROOT = tmp
|
||||
try:
|
||||
|
||||
@@ -24,6 +24,7 @@ sys.path.insert(0, str(REPO_ROOT))
|
||||
_SPEC = importlib.util.spec_from_file_location(
|
||||
"verify_multiuser",
|
||||
os.path.join(REPO_ROOT, "deploy", "verify-multiuser.py"))
|
||||
assert _SPEC is not None and _SPEC.loader is not None
|
||||
vm = importlib.util.module_from_spec(_SPEC)
|
||||
_SPEC.loader.exec_module(vm)
|
||||
|
||||
|
||||
Reference in new issue
Block a user