Skip to content

Commit

Permalink
Let's try tis one
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-paul-mueller committed Jun 17, 2024
1 parent d83fed2 commit a18ee30
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,12 @@ def test_temp_file():
with tempfile.NamedTemporaryFile(mode="wt") as F: # noqa: PLW1514
print("created temporary file", F.name)
F.write("Hello world.")


def test_temp_file2():
def my_write(path):
with open(path, "w") as F: # noqa: PTH123 PLW1514
F.write("Hello world.")

with tempfile.NamedTemporaryFile(mode="wt") as F: # noqa: PLW1514
my_write(F.name)

0 comments on commit a18ee30

Please sign in to comment.