mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-21 05:52:06 +08:00
f3f22a5698
* add pytest.mark.filterwarnings * remove -W pyopencl.CompilerWarning * add comment
15 lines
601 B
Python
Executable File
15 lines
601 B
Python
Executable File
#!/usr/bin/env python3
|
|
import pytest
|
|
import warnings
|
|
# Since metadrive depends on pkg_resources, and pkg_resources is deprecated as an API
|
|
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
|
|
|
from openpilot.tools.sim.bridge.metadrive.metadrive_bridge import MetaDriveBridge
|
|
from openpilot.tools.sim.tests.test_sim_bridge import TestSimBridgeBase
|
|
|
|
@pytest.mark.slow
|
|
@pytest.mark.filterwarnings("ignore::pyopencl.CompilerWarning") # Unimportant warning of non-empty compile log
|
|
class TestMetaDriveBridge(TestSimBridgeBase):
|
|
def create_bridge(self):
|
|
return MetaDriveBridge(False, False)
|