Skip to content

Commit

Permalink
test order fix
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bottler authored and facebook-github-bot committed Aug 31, 2022
1 parent 9577198 commit 9a1213e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_opengl_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 9a1213e

Please sign in to comment.