From 2359d274acf4de9fd3636d18f863f4c0308fa4cf Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 20 Oct 2022 13:46:58 -0400 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#11989) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/asottile/pyupgrade: v3.0.0 → v3.1.0](https://github.com/asottile/pyupgrade/compare/v3.0.0...v3.1.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- tests/test_activate.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 795a0328880..69c02a5f96b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,7 +30,7 @@ repos: # catch git merge/rebase problems - id: check-merge-conflict - repo: https://github.com/asottile/pyupgrade - rev: v3.0.0 + rev: v3.1.0 hooks: - id: pyupgrade args: ["--py37-plus"] diff --git a/tests/test_activate.py b/tests/test_activate.py index f8c9dc5e9e9..f3a226eba2b 100644 --- a/tests/test_activate.py +++ b/tests/test_activate.py @@ -1680,7 +1680,7 @@ def test_unicode(self): with env_vars({prompt: prompt_value}): # use a file as output stream to simulate PY2 default stdout with tempdir() as td: - with open(join(td, "stdout"), "wt") as stdout: + with open(join(td, "stdout"), "w") as stdout: with captured(stdout=stdout) as c: rc = main_sourced(shell, *activate_args, self.prefix)