fix two py3k failures
diff --git a/test/test_exceptions.py b/test/test_exceptions.py
index 0ab8cf9..8b7254b 100644
--- a/test/test_exceptions.py
+++ b/test/test_exceptions.py
@@ -92,7 +92,7 @@
                     assert u"".encode(sys.getdefaultencoding(),
                                             'htmlentityreplace') in html_error
                 except ImportError:
-                    assert u"3 ${'привет'}".encode(sys.getdefaultencoding(),
+                    assert u"${'привет'}".encode(sys.getdefaultencoding(),
                                             'htmlentityreplace') in html_error
             else:
                 try:
diff --git a/test/test_util.py b/test/test_util.py
index ad0de03..5c4f95f 100644
--- a/test/test_util.py
+++ b/test/test_util.py
@@ -32,7 +32,7 @@
     def test_read_file(self):
         fn = os.path.join(os.path.dirname(__file__), 'test_util.py')
         data = util.read_file(fn, 'rb')
-        self.failUnless('test_util' in data)
+        self.failUnless('test_util' in str(data)) # str() for py3k
 
     def test_load_module(self):
         fn = os.path.join(os.path.dirname(__file__), 'test_util.py')