Commit 80f76c5d authored by narugo1992's avatar narugo1992
Browse files

dev(narugo): fix the bug of threading mock

parent 3945ab73
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
import threading
import time
from concurrent.futures import ThreadPoolExecutor
from unittest.mock import patch
@@ -131,7 +132,9 @@ class TestTsLruCache:
@pytest.fixture
def reset_threading_ident():
    original_get_ident = threading.get_ident
    try:
        yield
    finally:
        threading.get_ident = original_get_ident