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
This commit is contained in:
Jeremy Reizenstein 2022-08-31 11:47:51 -07:00 committed by Facebook GitHub Bot
parent 95771985b7
commit 9a1213e0e5

View File

@ -322,6 +322,10 @@ class TestOpenGLMultiThreaded(TestCaseMixin, unittest.TestCase):
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")