(self, *a)
| 664 | return self.counter |
| 665 | |
| 666 | def __exit__(self, *a): |
| 667 | # Increment locking count number before releasing the lock |
| 668 | utils.write_file(f'{self.path}_counter', str(self.counter + 1)) |
| 669 | # And release the lock |
| 670 | os.close(self.fd) |
| 671 | try: |
| 672 | os.remove(self.path) |
| 673 | except Exception: |
| 674 | pass # Another process has raced to acquire the lock, and will delete it. |
| 675 | |
| 676 | |
| 677 | class BrowserCore(RunnerCore): |
nothing calls this directly
no test coverage detected