MCPcopy Create free account
hub / github.com/FastLED/FastLED / tearDown

Method tearDown

ci/tests/test_file_lock_rw.py:206–213  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

204 os.environ["FASTLED_LOCK_DB_PATH"] = str(self.db_path)
205
206 def tearDown(self) -> None:
207 import shutil
208
209 os.environ.pop("FASTLED_LOCK_DB_PATH", None)
210 from ci.util.lock_database import _db_cache
211
212 _db_cache.clear()
213 shutil.rmtree(self.temp_dir, ignore_errors=True)
214
215 def test_stale_lock_auto_broken_on_timeout(self) -> None:
216 """Stale lock should be automatically broken on timeout"""

Callers

nothing calls this directly

Calls 2

popMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected