Commit 9a1213e0 authored by Jeremy Reizenstein's avatar Jeremy Reizenstein Committed by Facebook GitHub Bot
Browse files

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
parent 95771985
...@@ -322,6 +322,10 @@ class TestOpenGLMultiThreaded(TestCaseMixin, unittest.TestCase): ...@@ -322,6 +322,10 @@ class TestOpenGLMultiThreaded(TestCaseMixin, unittest.TestCase):
class TestOpenGLUtils(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): def test_device_context_store(self):
# Most of DCS's functionality is tested in the tests above, test the remainder. # Most of DCS's functionality is tested in the tests above, test the remainder.
device = torch.device("cuda:0") device = torch.device("cuda:0")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment