Skip to content

Commit

Permalink
Run pyupgrade --py38-plus
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Jan 11, 2024
1 parent 2035cf9 commit 0465c79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ jobs:
runs-on: ubuntu-latest

steps:

- name: Download Package
uses: actions/download-artifact@v3
with:
name: Packages
path: dist


- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@v1.8.11
with:
Expand Down
2 changes: 1 addition & 1 deletion src/pytest_replay/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def pytest_collection_modifyitems(self, items, config):
if not replay_file:
return

with open(replay_file, "r", encoding="UTF-8") as f:
with open(replay_file, encoding="UTF-8") as f:
all_lines = f.readlines()
# Use a dict to deduplicate the node ids while keeping the order.
nodeids = dict.fromkeys(
Expand Down
4 changes: 2 additions & 2 deletions tests/test_replay.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def test_alternate_serial_parallel_does_not_erase_runs(suite, testdir, reverse):
for command_line in command_lines:
result = testdir.runpytest_subprocess(*command_line)
assert result.ret == 0
assert set(x.basename for x in (testdir.tmpdir / "replay").listdir()) == {
assert {x.basename for x in (testdir.tmpdir / "replay").listdir()} == {
".pytest-replay.txt",
".pytest-replay-gw0.txt",
".pytest-replay-gw1.txt",
Expand All @@ -186,7 +186,7 @@ def test_skip_cleanup_does_not_erase_replay_files(suite, testdir):
for command_line in command_lines:
result = testdir.runpytest_subprocess(*command_line)
assert result.ret == 0
assert set(x.basename for x in dir.listdir()) == {
assert {x.basename for x in dir.listdir()} == {
".pytest-replay-gw0.txt",
".pytest-replay-gw1.txt",
}
Expand Down

0 comments on commit 0465c79

Please sign in to comment.