mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-08-18 01:48:32 +08:00
Test: Fix client/03-publish-file cross platform
This commit is contained in:
@@ -7,9 +7,9 @@ from mosq_test_helper import *
|
||||
mosq_test.require_features(["WITH_BROKER"])
|
||||
|
||||
def write_file(filename):
|
||||
with open(filename, 'w') as f:
|
||||
f.write("line1\n")
|
||||
f.write("line2\n")
|
||||
with open(filename, 'wb') as f:
|
||||
f.write("line1\n".encode('utf-8'))
|
||||
f.write("line2\n".encode('utf-8'))
|
||||
|
||||
|
||||
def do_test(proto_ver):
|
||||
|
||||
Reference in New Issue
Block a user