Skip to content

Commit 9a1213e

Browse files
bottlerfacebook-github-bot
authored andcommitted
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
1 parent 9577198 commit 9a1213e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_opengl_utils.py

+4
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,10 @@ def test_render_multi_thread_multi_gpu(self):
322322

323323

324324
class TestOpenGLUtils(TestCaseMixin, unittest.TestCase):
325+
@classmethod
326+
def tearDownClass(cls):
327+
global_device_context_store.set_context_data(torch.device("cuda:0"), None)
328+
325329
def test_device_context_store(self):
326330
# Most of DCS's functionality is tested in the tests above, test the remainder.
327331
device = torch.device("cuda:0")

0 commit comments

Comments
 (0)