From dcf0580406ab66f29a284a9d9d3da91d76035532 Mon Sep 17 00:00:00 2001 From: William Grant Date: Sat, 19 Mar 2011 18:44:49 +1100 Subject: [PATCH] Open data files as binary for now. --- dkim/tests/test_dkim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dkim/tests/test_dkim.py b/dkim/tests/test_dkim.py index f499104..ee29158 100644 --- a/dkim/tests/test_dkim.py +++ b/dkim/tests/test_dkim.py @@ -28,7 +28,7 @@ def read_test_data(filename): The files live in dkim/tests/data. """ path = os.path.join(os.path.dirname(__file__), 'data', filename) - return open(path).read() + return open(path, 'rb').read() class TestFold(unittest.TestCase):