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. |
|
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. |
|
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