Skip to content

Commit 1ef64c8

Browse files
authored
Apply suggestion from @nijel
1 parent 2daacd8 commit 1ef64c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/test_dummy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def test_save_ringtone_permissions(self) -> None:
396396

397397
# Create a unique temporary file path using a secure method
398398
# We need to close and delete it so SaveRingtone can create it
399-
with tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.rttl') as f:
399+
with tempfile.NamedTemporaryFile(mode='wb', delete=False, suffix='.rttl') as f:
400400
temp_file = f.name
401401
os.unlink(temp_file) # Remove it so SaveRingtone can create it fresh
402402

0 commit comments

Comments
 (0)