From 2697b63bcde216f0f88c1d98e493b819d629a301 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Thu, 10 Oct 2013 18:01:56 -0400 Subject: [PATCH] Fix bytes/string mismatch in test on Python 3 --- testing/test_assertrewrite.py | 1 + 1 file changed, 1 insertion(+) diff --git a/testing/test_assertrewrite.py b/testing/test_assertrewrite.py index 935682a85..9348a99f0 100644 --- a/testing/test_assertrewrite.py +++ b/testing/test_assertrewrite.py @@ -514,6 +514,7 @@ def test_rewritten(): def test_load_resource(): assert isinstance(__loader__, AssertionRewritingHook) res = pkg_resources.resource_string(__name__, 'resource.txt') + res = res.decode('ascii') assert res == 'Load me please.' """, }