mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 04:14:52 +00:00
Changing the scope from module to session to fix the event_loop issue.
This commit is contained in:
parent
9de97f99c8
commit
19490afb25
@ -352,13 +352,13 @@ def ignore_logprob_response_snapshot(snapshot):
|
||||
return snapshot.use_extension(IgnoreLogProbResponseComparator)
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
@pytest.fixture(scope="session")
|
||||
def error_log():
|
||||
with tempfile.TemporaryFile("w+") as tmp:
|
||||
yield tmp
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
@pytest.fixture(scope="session")
|
||||
async def launcher(error_log):
|
||||
@contextlib.contextmanager
|
||||
def local_launcher(
|
||||
|
Loading…
Reference in New Issue
Block a user