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

Method tearDown

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

Source from the content-addressed store, hash-verified

133 os.environ["FASTLED_LOCK_DB_PATH"] = str(self.db_path)
134
135 def tearDown(self) -> None:
136 import shutil
137
138 os.environ.pop("FASTLED_LOCK_DB_PATH", None)
139 from ci.util.lock_database import _db_cache
140
141 _db_cache.clear()
142 shutil.rmtree(self.temp_dir, ignore_errors=True)
143
144 def test_lock_acquire_release(self) -> None:
145 """Lock should be acquired and released"""

Callers

nothing calls this directly

Calls 2

popMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected