Skip to content

Commit

Permalink
New test this should work.
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-paul-mueller committed Jun 17, 2024
1 parent a18ee30 commit ec8a6e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +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())

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


def test_temp_file2():
Expand Down

0 comments on commit ec8a6e4

Please sign in to comment.