=== modified file 'bzrlib/tests/test_crash.py'
--- old/bzrlib/tests/test_crash.py	2011-04-18 03:45:05 +0000
+++ new/bzrlib/tests/test_crash.py	2012-06-08 13:25:35 +0000
@@ -17,7 +17,7 @@
 
 import doctest
 import os
-from StringIO import StringIO
+from io import BytesIO
 import sys
 
 from bzrlib import (
@@ -46,7 +46,7 @@
             'plugin_warnings',
             {'example': ['Failed to load plugin foo']})
 
-        stderr = StringIO()
+        stderr = BytesIO()
 
         try:
             raise AssertionError("my error")
@@ -95,7 +95,7 @@
 
     def test_report_bug_legacy(self):
         self.setup_fake_plugins()
-        err_file = StringIO()
+        err_file = BytesIO()
         try:
             raise AssertionError("my error")
         except AssertionError, e:

