MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / __exit__

Method __exit__

test/browser_common.py:666–674  ·  view source on GitHub ↗
(self, *a)

Source from the content-addressed store, hash-verified

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
677class BrowserCore(RunnerCore):

Callers

nothing calls this directly

Calls 3

write_fileMethod · 0.80
closeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected