try fix filename encoding bug -- fails in one test

This commit is contained in:
holger krekel
2019-12-05 14:24:05 +01:00
parent 3b8e37de58
commit e45ee0eb81
3 changed files with 16 additions and 10 deletions

View File

@@ -448,7 +448,7 @@ class TestOnlineAccount:
lp.sec("ac1: prepare and send attachment + text to ac2")
blobdir = ac1.get_blobdir()
basename = "somedata.txt" # XXX try unicode
basename = "somedäüta.txt"
p = os.path.join(blobdir, basename)
with open(p, "w") as f:
f.write("some data")