Skip to content

Commit

Permalink
Let's see if this works.
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-paul-mueller committed Jun 17, 2024
1 parent ec8a6e4 commit 027d3d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ def test_temp_folder():


def test_temp_file():
def my_read(path):
with open(path) as F: # noqa: PTH123 PLW1514
print(F.readlines())
def my_read(F):
print(F.readlines())

with tempfile.NamedTemporaryFile(mode="wt") as F: # noqa: PLW1514
print("created temporary file", F.name)
F.write("Hello world.")
my_read(F.name)
F.seek(0)
my_read(F)


def test_temp_file2():
Expand Down

0 comments on commit 027d3d7

Please sign in to comment.