(first_lock, second_lock)
| 4 | |
| 5 | |
| 6 | def background(first_lock, second_lock): |
| 7 | with first_lock: |
| 8 | print(" First lock acquired") |
| 9 | time.sleep(1) |
| 10 | with second_lock: |
| 11 | print(" Second lock acquired") |
| 12 | |
| 13 | |
| 14 | if __name__ == "__main__": |
nothing calls this directly
no outgoing calls
no test coverage detected