Skip to content

Commit

Permalink
Revert back to somwething that should work.
Browse files Browse the repository at this point in the history
  • Loading branch information
rohe committed Feb 19, 2024
1 parent 966bf92 commit 62b0807
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_14_read_only_list_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ def test_read_only_list_file():
assert len(_read_only) == 0

with open(FILE_NAME, "w") as fp:
fp.writelines(line + '\n' for line in ["one", "two", "three"])
for line in ["one", "two", "three"]:
fp.write(line + '\n')

assert len(_read_only) == 3
assert set(_read_only) == {"one", "two", "three"}
Expand Down

0 comments on commit 62b0807

Please sign in to comment.