From 687e6e3a8320081821cb91491bdd857eb2a43772 Mon Sep 17 00:00:00 2001 From: Don Anderson Date: Wed, 13 May 2015 21:59:21 -0400 Subject: Poking into binary files on Windows requires open(...., 'rb') --- test/suite/test_encrypt06.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/suite/test_encrypt06.py b/test/suite/test_encrypt06.py index a0c99629e2c..21e4d50769c 100644 --- a/test/suite/test_encrypt06.py +++ b/test/suite/test_encrypt06.py @@ -130,7 +130,7 @@ class test_encrypt06(wttest.WiredTigerTestCase): def match_string_in_file(self, fname, match): - with open(fname, 'r') as f: + with open(fname, 'rb') as f: return (f.read().find(match) != -1) def match_string_in_rundir(self, match): -- cgit v1.2.1