Show More
@@ -52,7 +52,7 b' class histpacktests(unittest.TestCase):' | |||
|
52 | 52 | node, p1node, p2node, and linknode. |
|
53 | 53 | """ |
|
54 | 54 | if revisions is None: |
|
55 | revisions = [("filename", self.getFakeHash(), nullid, nullid, | |
|
55 | revisions = [(b"filename", self.getFakeHash(), nullid, nullid, | |
|
56 | 56 | self.getFakeHash(), None)] |
|
57 | 57 | |
|
58 | 58 | packdir = pycompat.fsencode(self.makeTempDir()) |
@@ -68,7 +68,7 b' class histpacktests(unittest.TestCase):' | |||
|
68 | 68 | def testAddSingle(self): |
|
69 | 69 | """Test putting a single entry into a pack and reading it out. |
|
70 | 70 | """ |
|
71 | filename = "foo" | |
|
71 | filename = b"foo" | |
|
72 | 72 | node = self.getFakeHash() |
|
73 | 73 | p1 = self.getFakeHash() |
|
74 | 74 | p2 = self.getFakeHash() |
@@ -88,7 +88,7 b' class histpacktests(unittest.TestCase):' | |||
|
88 | 88 | """ |
|
89 | 89 | revisions = [] |
|
90 | 90 | for i in range(10): |
|
91 |
filename = "foo-% |
|
|
91 | filename = b"foo-%d" % i | |
|
92 | 92 | node = self.getFakeHash() |
|
93 | 93 | p1 = self.getFakeHash() |
|
94 | 94 | p2 = self.getFakeHash() |
@@ -218,8 +218,8 b' class histpacktests(unittest.TestCase):' | |||
|
218 | 218 | self.assertEqual(missing, [(filename, fakenode)]) |
|
219 | 219 | |
|
220 | 220 | # Test getmissing on a non-existant filename |
|
221 | missing = pack.getmissing([("bar", fakenode)]) | |
|
222 | self.assertEqual(missing, [("bar", fakenode)]) | |
|
221 | missing = pack.getmissing([(b"bar", fakenode)]) | |
|
222 | self.assertEqual(missing, [(b"bar", fakenode)]) | |
|
223 | 223 | |
|
224 | 224 | def testAddThrows(self): |
|
225 | 225 | pack = self.createPack() |
General Comments 0
You need to be logged in to leave comments.
Login now