Skip to content

Commit

Permalink
fix: flake8 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravencentric committed Jun 28, 2024
1 parent e84f2ab commit 22fe26e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ def test_basic_initinfo():

@pytest.mark.api
def test_basic_not_implemented_yet1(tmp_path):
with py7zr.SevenZipFile(tmp_path.joinpath("test_x.7z"), mode="x") as archive:
archive.write(os.path.join(testdata_path, "test1.txt"), "test1.txt")
with pytest.raises(FileExistsError):
py7zr.SevenZipFile(tmp_path.joinpath("test_x.7z"), mode="x")
with py7zr.SevenZipFile(tmp_path.joinpath("test_x.7z"), mode="x") as archive:
archive.write(os.path.join(testdata_path, "test1.txt"), "test1.txt")
with pytest.raises(FileExistsError):
py7zr.SevenZipFile(tmp_path.joinpath("test_x.7z"), mode="x")


@pytest.mark.api
Expand Down

0 comments on commit 22fe26e

Please sign in to comment.