From 9a1213e0e534a14b5f907ec4a0033bd9954034ef Mon Sep 17 00:00:00 2001 From: Jeremy Reizenstein Date: Wed, 31 Aug 2022 11:47:51 -0700 Subject: [PATCH] test order fix Summary: A dummy value in test_opengl_utils seems to be able to break tests in test_mesh_renderer_opengl{,_to}. Reviewed By: kjchalup Differential Revision: D39173275 fbshipit-source-id: 83b15159f70135ea575d5085c7b6b37badd6e49e --- tests/test_opengl_utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_opengl_utils.py b/tests/test_opengl_utils.py index 31d9c2bbb..ab5a9b786 100644 --- a/tests/test_opengl_utils.py +++ b/tests/test_opengl_utils.py @@ -322,6 +322,10 @@ def test_render_multi_thread_multi_gpu(self): class TestOpenGLUtils(TestCaseMixin, unittest.TestCase): + @classmethod + def tearDownClass(cls): + global_device_context_store.set_context_data(torch.device("cuda:0"), None) + def test_device_context_store(self): # Most of DCS's functionality is tested in the tests above, test the remainder. device = torch.device("cuda:0")