mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 12:42:25 +00:00
Another tdir rmtree failure during tear down ignored
This commit is contained in:
parent
40a4429e58
commit
76381f5cdd
1 changed files with 3 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ import shutil
|
|||
import sys
|
||||
import tempfile
|
||||
import unittest
|
||||
from contextlib import suppress
|
||||
from functools import partial
|
||||
|
||||
from kitty.constants import is_macos, read_kitty_resource
|
||||
|
|
@ -34,7 +35,8 @@ class Rendering(BaseTest):
|
|||
def tearDown(self):
|
||||
self.test_ctx.__exit__()
|
||||
del self.sprites, self.cell_width, self.cell_height, self.test_ctx
|
||||
shutil.rmtree(self.tdir)
|
||||
with suppress(FileNotFoundError):
|
||||
shutil.rmtree(self.tdir)
|
||||
super().tearDown()
|
||||
|
||||
def test_sprite_map(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue