hotfix: skip slow pre-commit test

This commit is contained in:
George Hotz
2024-04-16 11:48:43 +04:00
parent cda0010020
commit b6e7243bfa
2 changed files with 2 additions and 1 deletions

View File

@@ -82,7 +82,7 @@ class DiskDevice(Compiled):
def _might_close(self):
self.count -= 1
if self.count == 0:
os.close(self.fd)
if hasattr(self, 'fd'): os.close(self.fd)
self.size = None
@functools.lru_cache(None) # pylint: disable=method-cache-max-size-none
def get_runner(self, *ast:LazyOp):