##// END OF EJS Templates
test-manifest.py: separate out test for double-free after copy()...
Martin von Zweigbergk -
r24465:bb8e2b1a default
parent child Browse files
Show More
@@ -69,6 +69,10 b' class testmanifest(unittest.TestCase):'
69 self.assertEqual(want, m['a'])
69 self.assertEqual(want, m['a'])
70 self.assertEqual('a\0' + HASH_1 + '\n' + A_SHORT_MANIFEST,
70 self.assertEqual('a\0' + HASH_1 + '\n' + A_SHORT_MANIFEST,
71 m.text())
71 m.text())
72
73 def testCopy(self):
74 m = manifestmod._lazymanifest(A_SHORT_MANIFEST)
75 m['a'] = binascii.unhexlify(HASH_1), ''
72 m2 = m.copy()
76 m2 = m.copy()
73 del m
77 del m
74 del m2 # make sure we don't double free() anything
78 del m2 # make sure we don't double free() anything
General Comments 0
You need to be logged in to leave comments. Login now