Skip to content

Commit

Permalink
black: Restyle with recent black 23.1.0
Browse files Browse the repository at this point in the history
See psf/black#3302 for details.
Fixes: #37

Signed-off-by: Stanislav Levin <slev@altlinux.org>
  • Loading branch information
stanislavlevin committed Feb 1, 2023
1 parent 51316f7 commit 3ce98a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/test_build/test_builder.py
Expand Up @@ -79,6 +79,7 @@ def test_verbosity(mock_build, pyproject, build_args):

verbose = build_args.get("verbose", False)
capture = not verbose

# emulate build error to see captured out/err
def _raise_process_error(*args, **kwargs):
stdout, stderr = (b"stdout", b"stderr") if capture else (None, None)
Expand Down Expand Up @@ -290,6 +291,7 @@ def test_raisable_thread(mock_build, pyproject, mocker):

# override mock_build's mock for os.read
mock_os_read = mocker.patch("pyproject_installer.build_cmd._build.os.read")

# emulate os.read error to raise thread
def _raise_os_read(*args, **kwargs):
raise OSError("oops")
Expand Down

0 comments on commit 3ce98a4

Please sign in to comment.