Commit 2706c14a authored by Tres Seaver's avatar Tres Seaver

Use bytes literals for _p_serial values.

parent 2d5492bd
...@@ -1784,7 +1784,7 @@ class Test_Tree(unittest.TestCase): ...@@ -1784,7 +1784,7 @@ class Test_Tree(unittest.TestCase):
def test__set_calls_readCurrent_on_jar(self): def test__set_calls_readCurrent_on_jar(self):
tree = self._makeOne() tree = self._makeOne()
tree._p_oid = b'OID' tree._p_oid = b'OID'
tree._p_serial = '01234567' tree._p_serial = b'01234567'
tree._p_jar = jar = _Jar() tree._p_jar = jar = _Jar()
tree._set('a', 'b') tree._set('a', 'b')
self.assertTrue(tree in jar._current) self.assertTrue(tree in jar._current)
...@@ -1840,7 +1840,7 @@ class Test_Tree(unittest.TestCase): ...@@ -1840,7 +1840,7 @@ class Test_Tree(unittest.TestCase):
def test__del_calls_readCurrent_on_jar(self): def test__del_calls_readCurrent_on_jar(self):
tree = self._makeOne({'a': 'b'}) tree = self._makeOne({'a': 'b'})
tree._p_oid = b'OID' tree._p_oid = b'OID'
tree._p_serial = '01234567' tree._p_serial = b'01234567'
tree._p_jar = jar = _Jar() tree._p_jar = jar = _Jar()
tree._del('a') tree._del('a')
self.assertTrue(tree in jar._current) self.assertTrue(tree in jar._current)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment