File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44import gc
55import unittest
6+ import warnings
67from unittest import mock
78
89import numpy as np
@@ -674,8 +675,14 @@ def test_finalize_matches_materialized_finalize(self):
674675 getattr (materialized , name )
675676 self .assertFalse (materialized ._array_backed_attributes )
676677
677- expected = materialized .finalize (device = "cpu" )
678- actual = array_backed .finalize (device = "cpu" )
678+ with warnings .catch_warnings ():
679+ warnings .filterwarnings (
680+ "ignore" ,
681+ message = "The legacy DOF-shaped joint_target_q layout is deprecated.*" ,
682+ category = DeprecationWarning ,
683+ )
684+ expected = materialized .finalize (device = "cpu" )
685+ actual = array_backed .finalize (device = "cpu" )
679686
680687 self .assertEqual (actual .world_count , expected .world_count )
681688 self .assertEqual (set (array_backed ._array_backed_attributes ), array_backed_names )
You can’t perform that action at this time.
0 commit comments