aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_functional.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_functional.py')
-rw-r--r--test/test_functional.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_functional.py b/test/test_functional.py
index 3e8d874..ec76998 100644
--- a/test/test_functional.py
+++ b/test/test_functional.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
import logging
+import io
import os.path
import unittest
import gg_scrapper
@@ -40,7 +41,7 @@ class TestGGScrapperFunctional(unittest.TestCase):
rfc_msg = '\n'.join(rfc_msg.split('\n')[1:])
exp_file_name = os.path.join(os.path.dirname(__file__), 'message.eml')
- with open(exp_file_name, 'r', encoding='utf8') as exp_f:
+ with io.open(exp_file_name, 'r', encoding='utf8') as exp_f:
self.assertEqual(rfc_msg, exp_f.read())