Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed Sep 27, 2024
1 parent d9ff03e commit 807aa9d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_blackd.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import gc
import re
from typing import TYPE_CHECKING, Any, Callable, TypeVar
from unittest.mock import patch
Expand Down Expand Up @@ -32,6 +33,10 @@ def unittest_run_loop(func, *args, **kwargs):

@pytest.mark.blackd
class BlackDTestCase(AioHTTPTestCase):
def tearDown(self) -> None:
gc.collect()
super().tearDown()

def test_blackd_main(self) -> None:
with patch("blackd.web.run_app"):
result = CliRunner().invoke(blackd.main, [])
Expand Down

0 comments on commit 807aa9d

Please sign in to comment.