]> granicus.if.org Git - python/commitdiff
The decode is used to workaround this:
authorJesus Cea <jcea@jcea.es>
Wed, 3 Sep 2008 20:23:47 +0000 (20:23 +0000)
committerJesus Cea <jcea@jcea.es>
Wed, 3 Sep 2008 20:23:47 +0000 (20:23 +0000)
http://mail.python.org/pipermail/python-3000/2008-September/014709.html

Lib/test/test_bsddb3.py

index 8bba1690d839a5c6385d50f748497d59d459c559..41d0e219dee2b074c156bc5c43098db92c4a5173 100644 (file)
@@ -57,7 +57,9 @@ def test_main():
                                  os.getpid()))
     # Please leave this print in, having this show up in the buildbots
     # makes diagnosing problems a lot easier.
-    print(db.DB_VERSION_STRING, file=sys.stderr)
+    # The decode is used to workaround this:
+    # http://mail.python.org/pipermail/python-3000/2008-September/014709.html
+    print(db.DB_VERSION_STRING.decode("iso8859-1"), file=sys.stderr)
     print('Test path prefix: ', test_all.get_test_path_prefix(), file=sys.stderr)
     try:
         run_unittest(test_all.suite(module_prefix='bsddb.test.',