From adf1e08519123bad85a271f2e409cea274c4fc44 Mon Sep 17 00:00:00 2001 From: Chunying Jia Date: Wed, 27 Jun 2018 21:54:25 +0800 Subject: [PATCH] 2018.6.27 v1.0.14, modify fish_csv unittest #72 --- test/test_csv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_csv.py b/test/test_csv.py index f10d2f9..3a00d7d 100644 --- a/test/test_csv.py +++ b/test/test_csv.py @@ -15,7 +15,7 @@ def test_csv(self): if not os.path.exists(os.path.dirname(csv_file_name)): os.makedirs(os.path.dirname(csv_file_name)) csv_content = "a,b\n1,2" - with open(csv_file_name, 'w') as f: + with open(csv_file_name, 'w', encoding='utf8') as f: f.write(csv_content) f.close() result = csv_file_to_list(csv_file_name)