mirror of
https://github.com/mandiant/capa.git
synced 2025-12-22 07:10:29 -08:00
introduce flake8-print linter
This commit is contained in:
@@ -8,11 +8,14 @@
|
||||
|
||||
import os
|
||||
import sys
|
||||
import logging
|
||||
import textwrap
|
||||
import subprocess
|
||||
|
||||
import pytest
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
CD = os.path.dirname(__file__)
|
||||
|
||||
|
||||
@@ -63,7 +66,7 @@ def test_bulk_process(tmpdir):
|
||||
|
||||
def run_program(script_path, args):
|
||||
args = [sys.executable] + [script_path] + args
|
||||
print(f"running: '{args}'")
|
||||
logger.debug("running: %r", args)
|
||||
return subprocess.run(args, stdout=subprocess.PIPE)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user