@@ -34,7 +34,7 @@ class TestCase(test_env.BaseTestCase):
3434 def test_4400 (self ):
3535 "4400 - test begin, prepare, roll back global transaction"
3636 self .cursor .execute ("truncate table TestTempTable" )
37- xid = self .conn .xid (3900 , "txn3900" , "branchId" )
37+ xid = self .conn .xid (3900 , b "txn3900" , b "branchId" )
3838 self .conn .tpc_begin (xid )
3939 self .assertEqual (self .conn .tpc_prepare (), False )
4040 self .conn .tpc_begin (xid )
@@ -70,7 +70,7 @@ def test_4402(self):
7070 "4402 - test multiple global transactions on the same connection"
7171 self .cursor .execute ("truncate table TestTempTable" )
7272 xid1 = self .conn .xid (3902 , "txn3902" , "branch1" )
73- xid2 = self .conn .xid (3902 , "txn3902" , "branch2" )
73+ xid2 = self .conn .xid (3902 , b "txn3902" , b "branch2" )
7474 self .conn .tpc_begin (xid1 )
7575 self .cursor .execute (
7676 """
@@ -102,7 +102,7 @@ def test_4402(self):
102102 def test_4403 (self ):
103103 "4403 - test rollback with parameter xid"
104104 self .cursor .execute ("truncate table TestTempTable" )
105- xid1 = self .conn .xid (3901 , "txn3901" , "branch1" )
105+ xid1 = self .conn .xid (3901 , b "txn3901" , b "branch1" )
106106 xid2 = self .conn .xid (3902 , "txn3902" , "branch2" )
107107 for count , xid in enumerate ([xid1 , xid2 ]):
108108 self .conn .tpc_begin (xid )
@@ -170,7 +170,7 @@ def test_4406(self):
170170 "4406 - test ending a transaction with parameter xid"
171171 self .cursor .execute ("truncate table TestTempTable" )
172172 xid1 = self .conn .xid (4406 , "txn4406a" , "branch3" )
173- xid2 = self .conn .xid (4406 , "txn4406b" , "branch4" )
173+ xid2 = self .conn .xid (4406 , b "txn4406b" , b "branch4" )
174174 self .conn .tpc_begin (xid1 )
175175 self .cursor .execute (
176176 """
0 commit comments