mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-16 09:09:48 +00:00
fix(tests): gate RL tests on the datasets extra
This commit is contained in:
@@ -18,9 +18,13 @@ import threading
|
||||
import time
|
||||
from queue import Queue
|
||||
|
||||
from torch.multiprocessing import Queue as TorchMPQueue
|
||||
import pytest
|
||||
|
||||
from lerobot.rl.queue import get_last_item_from_queue
|
||||
pytest.importorskip("datasets", reason="datasets is required (install lerobot[dataset])")
|
||||
|
||||
from torch.multiprocessing import Queue as TorchMPQueue # noqa: E402
|
||||
|
||||
from lerobot.rl.queue import get_last_item_from_queue # noqa: E402
|
||||
|
||||
|
||||
def test_get_last_item_single_item():
|
||||
|
||||
Reference in New Issue
Block a user