From 4f8045806cce589858f88a6dbec928f1ae6e176b Mon Sep 17 00:00:00 2001 From: Nickolai Korshunov Date: Sat, 18 Feb 2023 22:27:15 +0300 Subject: set default encoding of written files to UTF-8, added ability to pass custom file enconding --- test/textfile/textfile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/textfile/textfile.py b/test/textfile/textfile.py index a2d005cfb..f614dfc94 100644 --- a/test/textfile/textfile.py +++ b/test/textfile/textfile.py @@ -44,7 +44,8 @@ linesep = '\n' textparts = ['lalala', '42', 'Goethe', 'Schiller', - 'tanteratei'] + 'tanteratei', + '×'] # <-- this is unicode /xd7 symbol foo1Text = linesep.join(textparts) foo2Text = '|*'.join(textparts) foo1aText = foo1Text + linesep -- cgit v1.2.1