Skip to content

Commit

Permalink
Fix: Remove warning in GitHub file_status command test
Browse files Browse the repository at this point in the history
Ensure that the opened test file is always closed in the test for the
GitHub file_status command function.
  • Loading branch information
bjoernricks committed Jan 11, 2023
1 parent f4c8054 commit 33cf82a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/github/test_cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ async def test_file_status(self, api_mock):
],
}

with temp_file(name="some.file") as test_file:
output = test_file.open("w", encoding="utf-8")

with temp_file(name="some.file") as test_file, test_file.open(
"w", encoding="utf8"
) as output:
args = Namespace(
repo="foo/bar",
pull_request=8,
Expand Down

0 comments on commit 33cf82a

Please sign in to comment.