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