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

Method tearDown

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

Source from the content-addressed store, hash-verified

91 os.environ["FASTLED_LOCK_DB_PATH"] = str(self.db_path)
92
93 def tearDown(self) -> None:
94 import shutil
95
96 os.environ.pop("FASTLED_LOCK_DB_PATH", None)
97 from ci.util.lock_database import _db_cache
98
99 _db_cache.clear()
100 shutil.rmtree(self.temp_dir, ignore_errors=True)
101
102 def test_break_stale_lock_success(self) -> None:
103 """Successfully break a stale lock"""

Callers

nothing calls this directly

Calls 2

popMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected