Skip to content

Commit

Permalink
use our special named_temporary_file decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenkov committed Mar 21, 2024
1 parent 4a450e1 commit 27b7f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smart_open/tests/test_smart_open.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def named_temporary_file(mode='w+b', prefix=None, suffix=None, delete=True):


def test_zst_write():
with tempfile.NamedTemporaryFile(suffix=".zst") as tmp:
with named_temporary_file(suffix=".zst") as tmp:
with smart_open.open(tmp.name, "wt") as fout:
print("hello world", file=fout)
print("this is a test", file=fout)
Expand Down

0 comments on commit 27b7f2e

Please sign in to comment.