(self)
| 399 | self.assertCacheEmpty() |
| 400 | |
| 401 | def assertCacheEmpty(self): |
| 402 | if os.path.exists(cache.cachedir): |
| 403 | # The cache is considered empty if it contains no files at all or just the cache.lock |
| 404 | self.assertIn(os.listdir(cache.cachedir), ([], ['cache.lock'])) |
| 405 | |
| 406 | def ensure_cache(self): |
| 407 | self.do([EMCC, '-O2', test_file('hello_world.c')]) |
no test coverage detected