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

Method tearDownClass

test/browser_common.py:812–823  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

810
811 @classmethod
812 def tearDownClass(cls):
813 super().tearDownClass()
814 if not has_browser() or EMTEST_BROWSER == 'node':
815 return
816 cls.harness_server.stop()
817 cls.harness_server.join()
818 cls.browser_terminate()
819
820 if WINDOWS:
821 # On Windows, shutil.rmtree() in tearDown() raises this exception if we do not wait a bit:
822 # WindowsError: [Error 32] The process cannot access the file because it is being used by another process.
823 time.sleep(0.1)
824
825 def is_browser_test(self):
826 return True

Callers

nothing calls this directly

Calls 5

has_browserFunction · 0.85
browser_terminateMethod · 0.80
sleepMethod · 0.80
stopMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected