##// END OF EJS Templates
tests: perform a shallow copy instead of a deep copy...
Gregory Szorc -
r41622:5880b4e7 default
parent child Browse files
Show More
@@ -141,7 +141,7 b' class testlock(unittest.TestCase):'
141 141 state.assertacquirecalled(True)
142 142
143 143 # fake a fork
144 forklock = copy.deepcopy(lock)
144 forklock = copy.copy(lock)
145 145 forklock._pidoffset = 1
146 146 forklock.release()
147 147 state.assertreleasecalled(False)
@@ -238,7 +238,7 b' class testlock(unittest.TestCase):'
238 238 childstate.assertacquirecalled(True)
239 239
240 240 # fork the child lock
241 forkchildlock = copy.deepcopy(childlock)
241 forkchildlock = copy.copy(childlock)
242 242 forkchildlock._pidoffset += 1
243 243 forkchildlock.release()
244 244 childstate.assertreleasecalled(False)
General Comments 0
You need to be logged in to leave comments. Login now